/* Reset and Base Styles - McKinsey Inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-primary: #1a1a1a;
    --navy-secondary: #2d2d2d;
    --blue-accent: #8B6F47;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f5f3f0;
    --bg-lighter: #faf8f6;
    --border-light: #e8e3dd;
    --accent-warm: #885f33;
    --accent-green: #6b8e6f;
    --error-color: #dc3545;
    --success-color: #28a745;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

img,
video,
svg {
    max-width: 100%;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
}

.page-main {
    margin-top: 80px;
}

.page-hero {
    background: linear-gradient(120deg, #132d13 0%, #1e451b 50%, #2d5a27 100%);
    color: #ffffff;
    padding: 85px 0 55px;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.12rem;
    line-height: 1.65;
    opacity: 0.94;
}

/* Subpage Hero Quick Navigation & Breadcrumbs */
.page-hero-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.page-hero-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.page-hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.page-hero-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-hero-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
}

.page-hero-breadcrumbs .current {
    color: #ffffff;
    font-weight: 700;
}

.page-hero-quick-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.page-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.page-hero-chip:hover,
.page-hero-chip.active {
    background: var(--brand);
    border-color: var(--brand-glow);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 36px;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 0 36px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-accent), var(--navy-primary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Header */
#main-header,
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white, #ffffff);
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    height: 80px;
    transition: var(--transition);
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 1.5rem;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-image {
    height: 46px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-group img {
    height: 50px;
    width: auto;
}

/* Header Action & Utility Cluster */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.header-portal-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--accent-warm);
}

.nav-links a.active {
    color: var(--accent-warm);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: var(--accent-warm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Focus states for accessibility */
.nav-link:focus,
.btn:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

.nav-link.active {
    color: var(--blue-accent);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue-accent);
}

.nav-link.btn-contact {
    background: var(--navy-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
}

.nav-link.btn-contact:hover {
    background: var(--navy-secondary);
    color: white;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    cursor: pointer;
    min-height: 42px;
    padding: 0.45rem 0.95rem;
    color: var(--text-medium);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    transition: var(--transition);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: #fffaf3;
}

.menu-toggle i {
    font-size: 0.95rem;
}

.socials {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-self: end;
}

.socials a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.socials a:hover {
    color: var(--accent-warm);
    background: var(--bg-light);
}

.directory-panel {
    position: absolute;
    top: 80px;
    right: 40px;
    width: min(760px, calc(100% - 80px));
    background: #ffffff;
    border: 1px solid #e4ddd3;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    padding: 1.5rem 1.6rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1010;
}

/* When the directory panel is hidden (aria-hidden), remove it from the focus/visual flow
   This prevents focusable links inside from being reached by keyboard when the panel is closed. */
.directory-panel[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.directory-panel[aria-hidden="false"] {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#main-header.menu-open .directory-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.directory-column h3 {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6b7280;
    margin-bottom: 0.65rem;
}

.directory-column a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 0.22rem 0;
    transition: color 0.2s ease;
}

.directory-column a:hover,
.directory-column a.active {
    color: var(--accent-warm);
}

.directory-mobile-nav {
    display: none;
}

/* Hero Section - McKinsey Image Style */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 80px;
    padding: 70px 0 110px;
    overflow: visible;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, rgba(10, 25, 10, 0.48) 0%, rgba(10, 25, 10, 0.30) 50%, rgba(0, 0, 0, 0.12) 100%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
    padding: 2.5rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2.4rem, 6.5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    color: #ffffff;
    max-width: 620px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.hero .btn-primary {
    background: #ffffff;
    color: var(--navy-primary);
    border-color: #ffffff;
}

.hero .btn-primary:hover {
    background: #f3f3f3;
    border-color: #f3f3f3;
}

.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

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

/* Brown is the warm accent, not the action colour */
.btn-accent {
    background: var(--accent-warm);
    color: white;
    border-color: var(--accent-warm);
}

.btn-primary:hover {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
}

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

.btn-full {
    width: 100%;
}

/* Featured Section - Card Grid */
.featured {
    padding: 6rem 0;
    background: var(--bg-lighter);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.featured-card {
    background: white;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: none;
    border: 1px solid var(--border-light);
}

.featured-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.featured-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    padding: 2.5rem;
}

.featured-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--accent-warm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.3px;
}

.link-arrow:hover {
    color: var(--blue-accent);
    transform: translateX(2px);
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--navy-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* Services Section - McKinsey Grid */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-top: none;
    border-left: 4px solid var(--accent-warm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
}

.service-description {
    color: var(--text-medium);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    padding: 0.6rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '›';
    position: absolute;
    left: 0.2rem;
    color: var(--accent-warm);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Service Card Button */
.btn-service {
    margin-top: auto;
    padding: 0.85rem 1.8rem;
    background: transparent;
    color: var(--accent-warm);
    text-align: left;
    border: 2px solid var(--accent-warm);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-service:hover {
    background: var(--accent-warm);
    color: white;
    transform: translateY(-2px);
}

/* Insights Section - McKinsey Style */
.insights {
    background: var(--bg-lighter);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.insight-card {
    background: white;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.insight-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.insight-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insight-card:hover .insight-image img {
    transform: scale(1.03);
}

.insight-category {
    font-size: 0.8rem;
    color: var(--accent-warm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 2rem 0.8rem;
}

.insight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin: 0 2rem 0.8rem;
    line-height: 1.4;
}

.insight-excerpt {
    color: var(--text-medium);
    margin: 0 2rem 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.insight-card .link-arrow {
    margin: 0 2rem 2rem;
    display: inline-block;
}

/* Social Showcase Section */
.social-showcase {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.showcase-header {
    text-align: center;
    margin-bottom: 80px;
}

.showcase-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.showcase-title-top {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 0.9;
}

.showcase-title-bottom {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.1;
}

.showcase-gallery {
    position: relative;
    height: 620px;
    max-width: 1500px;
    margin: 0 auto;
}

.showcase-image {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: var(--showcase-transform);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        z-index 0.75s,
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-image:hover {
    transform: var(--showcase-transform) scale(1.03) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    z-index: 10 !important;
}

.showcase-gallery:has(.showcase-image:hover) .showcase-image:not(:hover) {
    transform: var(--showcase-transform) translateX(var(--focus-nudge-x, 0px)) scale(0.96);
    opacity: 0.8;
    filter: saturate(0.82);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Individual image positioning */
.showcase-image-1 {
    width: 280px;
    height: 380px;
    left: 1%;
    top: 50%;
    --showcase-transform: translateY(-50%) rotate(-12deg);
    --focus-nudge-x: -28px;
    z-index: 3;
}

.showcase-image-2 {
    width: 320px;
    height: 400px;
    left: 15%;
    top: 20%;
    --showcase-transform: rotate(6deg);
    --focus-nudge-x: -18px;
    z-index: 2;
}

.showcase-image-3 {
    width: 380px;
    height: 480px;
    left: 50%;
    top: 50%;
    --showcase-transform: translate(-50%, -50%) rotate(0deg);
    --focus-nudge-x: 0px;
    z-index: 5;
    border: 6px solid #FFD700;
    box-shadow: 0 0 0 2px #fff;
}

.showcase-image-4 {
    width: 300px;
    height: 400px;
    right: 15%;
    top: 15%;
    --showcase-transform: rotate(10deg);
    --focus-nudge-x: 18px;
    z-index: 2;
}

.showcase-image-5 {
    width: 280px;
    height: 360px;
    right: 1%;
    top: 50%;
    --showcase-transform: translateY(-50%) rotate(-7deg);
    --focus-nudge-x: 28px;
    z-index: 3;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .showcase-gallery {
        height: 500px;
    }

    .showcase-image-1 {
        width: 220px;
        height: 300px;
        left: 0;
    }

    .showcase-image-2 {
        width: 260px;
        height: 340px;
        left: 12%;
    }

    .showcase-image-3 {
        width: 300px;
        height: 400px;
    }

    .showcase-image-4 {
        width: 240px;
        height: 320px;
        right: 12%;
    }

    .showcase-image-5 {
        width: 220px;
        height: 300px;
        right: 0;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .social-showcase {
        padding: 80px 0;
    }

    .showcase-header {
        margin-bottom: 60px;
    }

    .showcase-gallery {
        height: 400px;
    }

    .showcase-image-1 {
        width: 160px;
        height: 220px;
        left: 0;
        top: 10%;
        --showcase-transform: rotate(-12deg);
        --focus-nudge-x: -12px;
    }

    .showcase-image-2 {
        width: 180px;
        height: 240px;
        left: 22%;
        top: 5%;
        --showcase-transform: rotate(6deg);
        --focus-nudge-x: -8px;
    }

    .showcase-image-3 {
        width: 200px;
        height: 280px;
        left: 50%;
        top: 45%;
        --showcase-transform: translate(-50%, -50%) rotate(0deg);
        --focus-nudge-x: 0px;
    }

    .showcase-image-4 {
        width: 170px;
        height: 230px;
        right: 22%;
        top: 60%;
        --showcase-transform: rotate(10deg);
        --focus-nudge-x: 8px;
    }

    .showcase-image-5 {
        width: 160px;
        height: 220px;
        right: 0;
        top: 70%;
        --showcase-transform: rotate(-7deg);
        --focus-nudge-x: 12px;
    }
}





/* Stats Section */
.stats {
    background: var(--navy-primary);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: var(--accent-warm);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Stats CTA */
.stats-cta {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 3rem;
}

.stats-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-cta {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--text-medium);
    margin-bottom: 1.8rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-item h4 {
    font-size: 1.15rem;
    color: var(--navy-primary);
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: white;
    padding: 2.8rem;
    border-left: none;
    border-top: 3px solid var(--accent-warm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    font-style: normal;
}

.author-name {
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.3rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: var(--bg-lighter);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
}

.section-title {
    text-align: left;
    margin-bottom: 0;
}

.contact-description {
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.home-socials {
    margin-bottom: 2rem;
}

.home-socials-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.home-socials-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: #fff;
}

.home-socials-links a:hover {
    color: var(--accent-warm);
    background: var(--bg-light);
    border-color: var(--accent-warm);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--accent-warm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-weight: 500;
    color: var(--navy-primary);
    font-size: 1.05rem;
}

/* Contact Links */
.contact-link {
    color: var(--navy-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    letter-spacing: -0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-light);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Form Validation Styles */
.required-indicator {
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    display: none;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--success-color);
}

/* Button Loading State */
.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-block;
}

.form-message {
    padding: 1rem;
    border-radius: 2px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    align-items: center;
    gap: 0.75rem;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    align-items: center;
}

.success-icon {
    flex-shrink: 0;
}

/* FAQ Section */
.faq {
    background: var(--bg-white);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-lighter);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Trust Indicators Section */
.trust-indicators {
    background: var(--bg-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.trust-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-warm), var(--blue-accent));
    border-radius: 50%;
    fill: white;
}

.trust-item h4 {
    font-size: 1.1rem;
    color: var(--navy-primary);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.trust-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Service Area Section */
.service-area {
    padding: 5rem 0;
    background: var(--bg-lighter);
}

.service-area-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.service-area-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-area-map {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.service-area-helper {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.service-area-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-area-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.control-group-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

.zip-input-group {
    display: flex;
    gap: 0.75rem;
}

.zip-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.zip-input:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.zip-input::placeholder {
    color: var(--text-light);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider-text {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-area-status {
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 3rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.service-area-status:empty {
    display: none;
}

.service-area-status--ok {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.service-area-status--warn {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Area chips — clickable area name pills */
.area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.area-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-medium);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.area-chip:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: var(--bg-light);
}

.area-chip--active {
    border-color: var(--accent-warm);
    background: var(--accent-warm);
    color: #fff;
}

/* Map area label markers */
.area-label-marker {
    background: transparent;
    border: none;
}

.area-label-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    font-family: inherit;
}

/* ── Auth Pages ── */
.auth-section {
    padding: 4rem 0 6rem;
    background: var(--bg-lighter);
    min-height: 60vh;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.auth-subtitle a {
    color: var(--accent-warm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-subtitle a:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0;
}

.password-toggle:hover {
    color: var(--accent-warm);
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem;
    }
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-warm);
    color: white;
    padding: 1rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 999;
    letter-spacing: 0.4px;
    will-change: transform;
}

.floating-cta:hover {
    background: var(--blue-accent);
    box-shadow: 0 6px 24px rgba(139, 111, 71, 0.35);
    transform: translateY(-2px);
}

.floating-cta svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--navy-primary);
    color: white;
    padding: 3.5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-area-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Header nav: compact the action cluster before it squeezes --- */
@media (max-width: 1420px) {
    .header-container {
        padding: 0 24px;
        gap: 1rem;
    }

    /* Socials move out of the bar on narrower screens to free space */
    .socials {
        display: none;
    }

    /* Install + Client Hub become icon-only so the links never clip */
    .header-portal-action>.btn-pwa-install span,
    .header-portal-action>.client-access-trigger span {
        display: none;
    }

    /* 44px keeps the hub/install/menu icons comfortable to tap one-handed. */
    .header-portal-action>.btn-pwa-install,
    .header-portal-action>.client-access-trigger {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .header-portal-action {
        gap: 0.45rem;
    }

    /* Keep buttons optically centred with the nav links */
    .header-portal-action>* {
        line-height: 1;
    }
}

/* --- Header nav: collapse into the hamburger directory menu --- */
@media (max-width: 1180px) {
    .header-container {
        gap: 0.75rem;
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.85rem 0;
    }

    .nav-links a::after {
        display: none;
    }

    .directory-panel {
        top: 80px;
        right: 16px;
        width: calc(100% - 32px);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .directory-mobile-nav {
        display: block;
    }

    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    .header-container {
        gap: 1rem;
        padding: 0 24px;
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
        display: none;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        z-index: 1002;
    }

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

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.85rem 0;
    }

    .nav-links a::after {
        display: none;
    }

    .directory-panel {
        right: 24px;
        width: calc(100% - 48px);
    }

    .hero {
        min-height: calc(100vh - 80px);
        height: auto;
        padding: 60px 0 110px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .featured-grid,
    .insights-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .menu-toggle {
        min-height: 40px;
        padding: 0.4rem 0.65rem;
        font-size: 0.72rem;
    }

    .menu-toggle span {
        display: none;
    }

    .directory-panel {
        top: 80px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 1rem;
    }

    .directory-mobile-nav {
        display: block;
    }

    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .menu-toggle {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        padding: 0.42rem 0.7rem;
    }

    .directory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        /* Ensure minimum touch target on mobile */
        min-height: 44px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        /* Better spacing for mobile */
        padding: 1rem;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .floating-cta span {
        display: none;
    }

    .floating-cta {
        padding: 1rem;
        border-radius: 50%;
    }

    .service-area-map {
        height: 280px;
    }

    .zip-input-group {
        flex-direction: column;
    }

    .zip-input-group .btn {
        width: 100%;
    }

    .area-chips {
        gap: 0.4rem;
    }

    .area-chip {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    section {
        padding: 4rem 0;
    }

    .page-main {
        margin-top: 80px;
    }

    .header-container {
        gap: 0.75rem;
        padding: 0 20px;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 50px 0 110px;
    }

    .hero .container {
        padding: 0 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .featured-content,
    .service-card,
    .testimonial-card {
        padding: 1.6rem;
    }

    .footer {
        padding: 2.6rem 0 1.5rem;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }
}

/* ── Download Guide CTA Button ── */
.btn-download-guide {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 1.1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-download-guide:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-download-guide svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .btn-download-guide {
        width: 100%;
        justify-content: center;
    }
}

/* Process page */
.process-hero {
    background: linear-gradient(135deg, var(--brand-forest) 0%, #2d5a27 60%, #3a7a30 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
}

.process-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.process-hero p {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.process-hero .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    color: var(--brand-forest);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.process-hero .btn-download:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.workflow {
    padding: 70px 0;
    background: #f9fafb;
}

.workflow .section-header {
    margin-bottom: 3rem;
}

.steps-list {
    display: grid;
    gap: 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #2d5a27;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.step-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-forest);
}

.step-body p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.decision-guide {
    padding: 70px 0;
}

.decision-table-wrap {
    overflow-x: auto;
}

.decision-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.decision-table th {
    background: #2d5a27;
    color: #fff;
    padding: 0.85rem 1.2rem;
    text-align: left;
    font-weight: 700;
}

.decision-table td {
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.decision-table tr:nth-child(even) td {
    background: #f3f7f1;
}

.badge-diy {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 12px;
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-expert {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.pros-cons {
    padding: 70px 0;
    background: #f9fafb;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.pc-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.pc-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--brand-forest);
}

.pc-heading-icon {
    color: #2d5a27;
}

.pc-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.pc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.pc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #374151;
}

.icon-pro {
    color: var(--brand-bright);
    flex-shrink: 0;
}

.icon-con {
    color: var(--danger);
    flex-shrink: 0;
}

.expert-cta {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, #2d5a27 0%, #3a7a30 100%);
    color: #fff;
}

.expert-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.expert-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.expert-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-white {
    background: #fff;
    color: var(--brand-forest);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-white:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: 2px solid #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cta-icon {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .process-hero {
        padding: 90px 0 50px;
    }

    .process-hero p {
        font-size: 1rem;
    }

    .process-hero .btn-download {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.2rem;
    }

    .workflow,
    .decision-guide,
    .pros-cons,
    .expert-cta {
        padding: 52px 0;
    }

    .step-item {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1.2rem;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .decision-table {
        min-width: 640px;
        font-size: 0.9rem;
    }

    .decision-table th,
    .decision-table td {
        padding: 0.65rem 0.85rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .pc-card {
        padding: 1.2rem;
    }

    .expert-cta p {
        font-size: 1rem;
    }

    .expert-cta-buttons {
        width: 100%;
    }

    .btn-white,
    .btn-outline-white {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.1rem;
    }
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-primary, #1a2a3a);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-banner.visible {
    transform: translateY(0);
}

.install-banner-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.install-banner-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.install-banner-text span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.install-banner .btn-install {
    background: var(--green-primary, #4CAF50);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.install-banner .btn-install:hover {
    background: var(--green-dark, #388E3C);
}

.install-banner .btn-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.install-banner .btn-dismiss:hover {
    color: #fff;
}

/* Cookie Consent Banner (positioning lives in the "Slim privacy notice"
   section below — keep one definition so the two don't fight). */
.cookie-consent {
    display: flex;
    align-items: center;
    z-index: 9999;
    color: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--accent-green, #6b8e6f);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    /* Brand green (not the muted #6b8e6f legacy tone): white text needs this
       darker shade to clear WCAG AA contrast on a phone. */
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-cookie-accept:hover {
    background: var(--brand-dark);
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 600px) {
    .btn-cookie-accept,
    .btn-cookie-decline {
        padding: 0.6rem;
    }
}

/* --- Bottom overlay coordination ---
   Reserving body padding while a fixed overlay is open keeps the page
   footer fully readable (never blocked by the cookie/install bars). */
body.install-banner-visible {
    padding-bottom: 88px;
}

body.cookie-consent-visible {
    padding-bottom: 96px;
}

body.install-banner-visible.cookie-consent-visible {
    padding-bottom: 184px;
}

/* Lift the install bar above the cookie pill when both are visible */
body.cookie-consent-visible .install-banner {
    bottom: calc(var(--cookie-banner-offset, 96px) + 14px);
}

/* Hide the floating quote widget while bottom overlays would collide */
body.cookie-consent-visible .floating-cta,
body.install-banner-visible .floating-cta {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

.floating-cta--hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.floating-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Project Gallery Section */
.project-gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-cta {
    text-align: right;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-overlay {
        opacity: 1;
    }
}

.install-banner {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
}

.install-banner-text span {
    font-size: 0.75rem;
}

.install-banner .btn-install {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
}


/* ── PWA Standalone Mode — Force Mobile Layout ── */
html.pwa,
html.pwa body,
body.pwa-standalone {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

html.pwa .nav-menu,
body.pwa-standalone .nav-menu {
    position: absolute !important;
    top: 80px !important;
    left: 0 !important;
    width: 100% !important;
    background: var(--bg-white) !important;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08) !important;
    display: none !important;
    justify-content: flex-start !important;
    padding: 0.5rem 1rem !important;
    z-index: 1002 !important;
}

html.pwa .nav-menu.active,
body.pwa-standalone .nav-menu.active {
    display: flex !important;
}

html.pwa .nav-links,
body.pwa-standalone .nav-links {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

html.pwa .nav-links li,
body.pwa-standalone .nav-links li {
    width: 100% !important;
    border-bottom: 1px solid var(--border-light) !important;
}

html.pwa .nav-links li:last-child,
body.pwa-standalone .nav-links li:last-child {
    border-bottom: none !important;
}

html.pwa .nav-links a,
body.pwa-standalone .nav-links a {
    display: block !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 0 !important;
}

html.pwa .nav-links a::after,
body.pwa-standalone .nav-links a::after {
    display: none !important;
}

html.pwa .socials,
body.pwa-standalone .socials {
    display: none !important;
}

html.pwa .directory-panel,
body.pwa-standalone .directory-panel {
    right: 16px !important;
    width: calc(100% - 32px) !important;
}

html.pwa .container,
body.pwa-standalone .container {
    padding: 0 20px !important;
}

html.pwa .hero,
body.pwa-standalone .hero {
    height: auto !important;
    min-height: calc(100vh - 80px) !important;
    padding: 50px 0 110px !important;
}

html.pwa .hero .container,
body.pwa-standalone .hero .container {
    padding: 0 24px !important;
}

html.pwa .hero-content,
body.pwa-standalone .hero-content {
    max-width: 100% !important;
}

html.pwa .hero-title,
body.pwa-standalone .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
}

html.pwa .hero-subtitle,
body.pwa-standalone .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.8rem !important;
}

html.pwa .featured-grid,
html.pwa .insights-grid,
html.pwa .testimonials-grid,
html.pwa .services-grid,
body.pwa-standalone .featured-grid,
body.pwa-standalone .insights-grid,
body.pwa-standalone .testimonials-grid,
body.pwa-standalone .services-grid {
    grid-template-columns: 1fr !important;
}

html.pwa .gallery-grid,
body.pwa-standalone .gallery-grid {
    grid-template-columns: 1fr !important;
}

html.pwa .stats-grid,
body.pwa-standalone .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

html.pwa .about-content,
html.pwa .contact-wrapper,
body.pwa-standalone .about-content,
body.pwa-standalone .contact-wrapper {
    grid-template-columns: 1fr !important;
}

html.pwa .about-values,
body.pwa-standalone .about-values {
    grid-template-columns: 1fr !important;
}

html.pwa .footer-content,
body.pwa-standalone .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

html.pwa .footer-bottom,
body.pwa-standalone .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
}

html.pwa .section-title,
body.pwa-standalone .section-title {
    font-size: 2rem !important;
}

html.pwa .featured-content,
html.pwa .service-card,
html.pwa .testimonial-card,
body.pwa-standalone .featured-content,
body.pwa-standalone .service-card,
body.pwa-standalone .testimonial-card {
    padding: 1.6rem !important;
}

html.pwa .footer,
body.pwa-standalone .footer {
    padding: 2.6rem 0 1.5rem !important;
}

html.pwa section,
body.pwa-standalone section {
    padding: 4rem 0 !important;
}

html.pwa .page-main,
body.pwa-standalone .page-main {
    margin-top: 80px !important;
}

html.pwa .header-container,
body.pwa-standalone .header-container {
    gap: 0.6rem !important;
    padding: 0 12px !important;
}

html.pwa .logo-image,
body.pwa-standalone .logo-image {
    height: 40px !important;
}

html.pwa .logo-text,
body.pwa-standalone .logo-text {
    font-size: 1rem !important;
}

html.pwa .form-row,
body.pwa-standalone .form-row {
    grid-template-columns: 1fr !important;
}

html.pwa .btn-download-guide,
body.pwa-standalone .btn-download-guide {
    width: 100% !important;
    justify-content: center !important;
}

html.pwa .hero-buttons,
body.pwa-standalone .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
}

html.pwa .hero-buttons .btn,
body.pwa-standalone .hero-buttons .btn {
    width: 100% !important;
    text-align: center !important;
}

html.pwa .service-area-layout,
body.pwa-standalone .service-area-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

html.pwa .zip-input-group,
body.pwa-standalone .zip-input-group {
    flex-direction: column !important;
}

html.pwa .zip-input-group .btn,
body.pwa-standalone .zip-input-group .btn {
    width: 100% !important;
}

html.pwa .floating-cta span,
body.pwa-standalone .floating-cta span {
    display: none !important;
}

html.pwa .floating-cta,
body.pwa-standalone .floating-cta {
    padding: 1rem !important;
    border-radius: 50% !important;
}

html.pwa .trust-grid,
body.pwa-standalone .trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* ==========================================================
   LAWN CRAFT DYNAMIC CLIENT HUB & PERSONALIZATION STYLES
   ========================================================== */

/* Top Bar Client Hub Button */
.btn-portal-nav,
.client-access-trigger {
    background: var(--brand);
    color: #ffffff !important;
    border: 1px solid var(--brand-dark);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}

.client-access-trigger:hover {
    background: var(--brand-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.client-access-trigger.logged-in {
    background: #fdfbf7;
    color: var(--brand-forest) !important;
    border: 1.5px solid #d4af37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.client-access-trigger.logged-in:hover {
    background: #f7f3ea;
}

.vip-tier-chip {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-tier-chip.tier-gold {
    background: #fef08a;
    color: var(--earth);
    border: 1px solid var(--earth-bright);
}

.vip-tier-chip.tier-platinum {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.vip-tier-chip.tier-bronze {
    background: #fed7aa;
    color: var(--earth-deep);
    border: 1px solid #fdba74;
}

.vip-tier-chip.tier-silver {
    background: var(--surface-3);
    color: var(--slate-soft);
    border: 1px solid var(--slate-border-strong);
}

/* Personalized Hero Additions */
.client-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-ring 1.8s infinite;
}

.client-hero-greeting {
    font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
}

.highlight-client {
    color: #86efac;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.client-hero-property {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--slate-border);
    margin-bottom: 1.5rem;
}

.prop-specs-divider {
    opacity: 0.6;
}

.client-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Personalized Dashboard Wrapper */
.personalized-dashboard-wrapper {
    background: var(--brand-surface);
    padding: 40px 0 60px;
    border-bottom: 1px solid var(--slate-border);
}

/* Loyalty & Perks Bar */
.loyalty-perks-banner {
    background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-dark) 50%, var(--brand-deep) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px 30px;
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.6fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(26, 58, 26, 0.2);
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .loyalty-perks-banner {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 18px;
    }
}

.loyalty-col {
    display: flex;
    align-items: center;
    gap: 16px;
}

.loyalty-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.text-gold {
    color: var(--earth-bright);
}

.text-platinum {
    color: #a5b4fc;
}

.text-bronze {
    color: #fdba74;
}

.text-silver {
    color: var(--slate-border-strong);
}

.loyalty-label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #86efac;
    font-weight: 700;
}

.loyalty-tier-title {
    font-size: 1.35rem;
    font-weight: 900;
}

.loyalty-points-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 24px;
}

@media (max-width: 900px) {
    .loyalty-points-col {
        border-left: none;
        border-right: none;
        padding: 0;
    }
}

.loyalty-stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.pts-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #86efac;
}

.loyalty-value-sub {
    font-size: 0.85rem;
    opacity: 0.9;
}

.loyalty-referral-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ref-code {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--earth-bright);
}

.btn-copy-ref {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-ref:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-whatsapp-share {
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-whatsapp-share:hover {
    background: #1ebc59;
}

/* Client Portal Grid */
.client-portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 860px) {
    .client-portal-grid {
        grid-template-columns: 1fr;
    }
}

.portal-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portal-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--surface-3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.portal-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--brand);
    display: block;
    margin-bottom: 4px;
}

.portal-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink-2);
    margin: 0;
}

.portal-card-body {
    padding: 24px;
    flex: 1;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-in-progress {
    background: var(--brand-tint);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-in-progress .live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

.status-scheduled {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-unpaid {
    background: #fef2f2;
    color: var(--danger-strong);
    border: 1px solid #fecaca;
}

.status-paid {
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid var(--brand-soft-2);
}

/* Service Meta Grid */
.service-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.78rem;
    color: var(--slate-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.meta-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink-2);
}

.meta-value.highlight {
    color: var(--brand);
}

.crew-tracker-teaser {
    background: var(--brand-light);
    border: 1px solid var(--brand-soft-2);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.teaser-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crew-avatar {
    width: 44px;
    height: 44px;
    background: var(--brand);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.crew-text strong {
    font-size: 0.95rem;
    color: var(--brand-dark);
}

.crew-text p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #374151;
}

.btn-tracker-pulse {
    background: var(--brand);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-tracker-pulse:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* Invoice Alert Box */
.invoice-alert-box {
    background: var(--earth-tint-2);
    border: 1px solid var(--earth-soft);
    border-radius: 10px;
    padding: 18px;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.inv-num {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--earth);
}

.inv-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink-2);
    margin-top: 2px;
}

.inv-amount-box {
    text-align: right;
}

.balance-label {
    display: block;
    font-size: 0.75rem;
    color: var(--earth);
    text-transform: uppercase;
    font-weight: 700;
}

.balance-amount {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--danger-strong);
}

.payment-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-mpesa-instant {
    background: #00b04f;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-mpesa-instant:hover {
    background: #009341;
}

.btn-card-pay {
    background: var(--ink-2);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-card-pay:hover {
    background: var(--ink);
}

.btn-view-invoice {
    background: var(--surface-3);
    color: var(--slate-soft) !important;
    border: 1px solid var(--slate-border-strong);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-view-invoice:hover {
    background: var(--slate-border);
}

/* All Paid Celebration */
.all-paid-celebration {
    text-align: center;
    padding: 10px 0;
}

.paid-check-circle {
    width: 48px;
    height: 48px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.all-paid-celebration h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--ink-2);
}

.all-paid-celebration p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--slate-muted);
}

.recent-receipts-list {
    text-align: left;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-muted);
    text-transform: uppercase;
}

.recent-receipt-link {
    font-size: 0.85rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.recent-receipt-link:hover {
    text-decoration: underline;
}

/* 1-Click Addons Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    padding: 24px;
}

.addon-item {
    background: #fdfbf7;
    border: 1px solid #ede8e1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.addon-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.addon-icon {
    width: 42px;
    height: 42px;
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.addon-details h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.addon-details p {
    font-size: 0.82rem;
    color: var(--slate-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 14px;
}

.btn-addon-book {
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-addon-book:hover {
    background: var(--brand-dark);
}

.btn-addon-book.booked-success {
    background: #059669;
}

/* Modals */
.portal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.portal-modal-backdrop.active {
    display: flex;
}

.portal-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--slate-faint);
    cursor: pointer;
    line-height: 1;
}

.portal-modal-close:hover {
    color: var(--ink-2);
}

.client-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.client-modal-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}

.client-modal-header h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.client-modal-header p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--slate-muted);
    line-height: 1.5;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-faint);
}

.input-with-icon input {
    padding-left: 42px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
}

/* Demo Pills */
.demo-switch-pills {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--slate-border);
}

.demo-pills-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pills-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-pill {
    background: var(--surface-2);
    border: 1px solid var(--slate-border);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--ink-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.demo-pill:hover {
    background: var(--surface-3);
    border-color: var(--brand);
}

.demo-pill.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pill-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.badge-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge-vip {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-bronze {
    background: #ffedd5;
    color: var(--earth-deep);
}

/* M-Pesa Modal Specifics */
.mpesa-header {
    text-align: center;
    margin-bottom: 20px;
}

.mpesa-logo-badge {
    display: inline-block;
    background: #00b04f;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.mpesa-amount-display {
    text-align: center;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.mpesa-amount-display .currency {
    font-size: 0.9rem;
    color: var(--slate-muted);
    display: block;
}

.mpesa-amount-display .figure {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00b04f;
}

.btn-mpesa-trigger {
    background: #00b04f;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-mpesa-trigger:hover {
    background: #009341;
}

.mpesa-status-view,
.mpesa-success-view {
    text-align: center;
    padding: 20px 0;
}

.stk-spinner i {
    font-size: 2.5rem;
    color: #00b04f;
    margin-bottom: 16px;
}

.stk-simulation-notice {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.success-icon i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 12px;
}

/* Toast Notifications */
.portal-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-toast {
    background: var(--ink-2);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    max-width: 380px;
    animation: toastSlideIn 0.3s ease;
}

.portal-toast-success {
    border-left: 4px solid #10b981;
}

.portal-toast-error {
    border-left: 4px solid #ef4444;
}

.portal-toast-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   PRICING CALCULATOR STYLES
   ========================================================== */
.calculator-page-section {
    padding: 60px 0;
    background: var(--brand-surface);
}

.calc-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    /* minmax(0, 1fr): a plain 1fr track refuses to shrink below the panels'
       min-content width, which pushed the grid past 320px-wide phones. */
    .calc-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.calc-card-panel {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--brand);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.panel-header p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--slate-muted);
}

.size-display-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.size-big {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand);
}

.size-hint {
    font-size: 0.85rem;
    color: var(--slate-muted);
}

.calc-range-slider {
    width: 100%;
    height: 8px;
    background: var(--slate-border);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--brand);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    /* --slate-faint (#94a3b8) is only 2.6:1 on white; muted clears AA. */
    color: var(--slate-muted);
    margin-top: 8px;
}

.chips-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.calc-chip {
    background: var(--surface-2);
    border: 1.5px solid var(--slate-border);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.calc-chip:hover {
    border-color: var(--slate-border-strong);
    background: var(--surface-3);
}

.calc-chip.active {
    background: var(--brand-tint);
    border-color: var(--brand);
    color: var(--brand);
}

.addons-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--slate-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.addon-checkbox-label:hover {
    border-color: var(--slate-border-strong);
}

.addon-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.addon-info {
    flex: 1;
}

.addon-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.addon-info span {
    font-size: 0.78rem;
    color: var(--slate-muted);
}

.addon-rate-tag {
    font-weight: 700;
    color: var(--brand);
    font-size: 0.92rem;
}

/* Sticky Summary Card */
.sticky-calc-summary {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.sticky-calc-summary h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: #1a1a1a;
    border-bottom: 1px solid var(--slate-border);
    padding-bottom: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--slate-soft);
    margin-bottom: 8px;
}

.summary-total-big {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 2px solid var(--slate-border);
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-total-big strong {
    font-size: 2rem;
    color: var(--brand);
}

.tax-note {
    font-size: 0.75rem;
    color: var(--slate-muted);
    margin-top: 4px;
    margin-bottom: 18px;
}

.promo-code-wrap {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.promo-code-wrap label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-soft);
    display: block;
    margin-bottom: 6px;
}

.coupon-input-group {
    display: flex;
    gap: 6px;
}

.coupon-field {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--slate-border-strong);
    border-radius: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-apply-coupon {
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.coupon-message {
    font-size: 0.78rem;
    margin-top: 6px;
}

.coupon-message.success {
    color: var(--brand);
    font-weight: 700;
}

.coupon-message.error {
    color: var(--danger-strong);
}

.coupon-hints {
    font-size: 0.72rem;
    color: var(--slate-muted);
    margin-top: 6px;
}

.coupon-hints code {
    background: var(--slate-border);
    color: #334155;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.btn-calc-action {
    padding: 14px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.action-caption {
    font-size: 0.75rem;
    color: var(--slate-muted);
    text-align: center;
    margin: 0 0 16px;
}

.calc-perks-list {
    border-top: 1px solid var(--surface-3);
    padding-top: 14px;
    font-size: 0.82rem;
    color: var(--slate-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anon-estimate-pill {
    background: var(--brand-tint);
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ==========================================================
   HERO QUICK NAVIGATION BAR & ACCURATE HERO NAVIGATION
   ========================================================== */
.hero-quick-nav {
    margin-top: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(0, 22, 45, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 18px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    animation: fadeIn 0.8s ease-out;
}

.hero-quick-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-quick-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.hero-quick-chip:hover,
.hero-quick-chip.active {
    background: var(--brand);
    border-color: var(--brand-glow);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.45);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 22, 45, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 5;
    transition: all 0.25s ease;
    animation: heroBounce 2s infinite ease-in-out;
}

.hero-scroll-indicator:hover {
    background: var(--brand);
    border-color: var(--brand-glow);
    color: #ffffff;
    transform: translateX(-50%) translateY(-2px);
}

@keyframes heroBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ==========================================================
   HEADER PWA INSTALL BUTTON
   ========================================================== */
.btn-pwa-install {
    background: rgba(21, 128, 61, 0.12);
    color: var(--brand) !important;
    border: 1.5px solid var(--brand);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pwa-install:hover {
    background: var(--brand);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-safety-info {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-safety-info:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================
   PWA INSTALLATION & ANDROID DEVICE SAFETY MODAL
   ========================================================== */
.pwa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 16px;
}

.pwa-modal-backdrop.active {
    display: flex;
}

.pwa-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--slate-border);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pwa-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--surface-3);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--slate-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pwa-modal-close:hover {
    background: var(--slate-border);
    color: var(--ink);
}

.pwa-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-right: 30px;
}

.pwa-modal-icon {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.pwa-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}

.pwa-modal-subtitle {
    font-size: 0.88rem;
    color: var(--slate-muted);
    margin: 0;
    line-height: 1.4;
}

.pwa-security-guarantee {
    background: var(--brand-light);
    border: 1px solid var(--brand-soft-2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pwa-security-guarantee .sec-icon {
    font-size: 1.4rem;
    color: var(--brand);
    margin-top: 2px;
}

.pwa-security-guarantee strong {
    font-size: 0.92rem;
    color: var(--brand-deep);
    display: block;
    margin-bottom: 2px;
}

.pwa-security-guarantee p {
    font-size: 0.82rem;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.45;
}

/* Specific Android Notice Card addressing the user's issue */
.pwa-android-notice {
    background: var(--earth-tint-2);
    border: 1.5px solid var(--earth-soft);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pwa-android-notice.highlight-pulse {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--earth-tint);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pwa-android-notice h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}

.pwa-android-notice p {
    font-size: 0.84rem;
    color: #92400e;
    margin: 0 0 8px;
    line-height: 1.5;
}

.badge-safe {
    background: var(--brand-glow);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.notice-action-tip {
    background: rgba(254, 243, 199, 0.6);
    border-left: 3px solid #d97706;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.84rem;
    color: var(--earth-dark);
    margin-top: 8px;
}

.pwa-action-block {
    text-align: center;
    margin-bottom: 22px;
}

.btn-pwa-direct-install {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pwa-action-caption {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-muted);
    margin-top: 6px;
}

.pwa-tabs-section h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-2);
    margin: 0 0 10px;
}

.pwa-platform-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-guide-item {
    background: var(--surface-2);
    border: 1px solid var(--slate-border);
    border-radius: 10px;
    padding: 12px 14px;
}

.platform-icon {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.platform-guide-item ol {
    margin: 0;
    padding-left: 20px;
    font-size: 0.82rem;
    color: var(--slate-soft);
    line-height: 1.5;
}

.platform-guide-item li {
    margin-bottom: 4px;
}

.pwa-modal-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid var(--surface-3);
    padding-top: 14px;
}

.btn-pwa-dismiss-modal {
    background: none;
    border: 1px solid var(--slate-border-strong);
    color: var(--slate-soft);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pwa-dismiss-modal:hover {
    background: var(--surface-3);
    color: var(--ink);
}


/* ============================================================
   Kaggle-inspired modern layout (emerald system)
   ============================================================ */

/* ============================================================
   Design tokens — single source of truth.
   Primary: emerald green (brand) · Secondary: earth/amber
   Neutrals: slate · consumed by both marketing pages and the
   client hub (dashboard.css). Reference tokens instead of raw
   hex values in new work.
   ============================================================ */
:root {
    /* Brand — emerald */
    --brand: #15803d;
    --brand-dark: #166534;
    --brand-deep: #14532d;
    --brand-forest: #1a3a1a;
    --brand-bright: #16a34a;
    --brand-glow: #22c55e;
    --brand-light: #f0fdf4;
    --brand-soft: #dcfce7;
    --brand-soft-2: #bbf7d0;
    --brand-tint: #ecfdf5;
    --brand-surface: #f4f6f4;

    /* Secondary — earth / amber */
    --earth: #854d0e;
    --earth-dark: #78350f;
    --earth-deep: #9a3412;
    --earth-bright: #facc15;
    --earth-soft: #fde68a;
    --earth-tint: #fef3c7;
    --earth-tint-2: #fffbeb;

    /* Neutrals — slate */
    --ink: #0f172a;
    --ink-2: #1e293b;
    --slate-strong: #334155;
    --slate-soft: #475569;
    --slate-muted: #64748b;
    --slate-faint: #94a3b8;
    --slate-border: #e2e8f0;
    --slate-border-strong: #cbd5e1;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --slate-text: #0f172a;

    /* Semantic */
    --danger: #dc2626;
    --danger-strong: #b91c1c;
    --success: #16a34a;
    --warning: #facc15;

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    /* Shadow scale */
    --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 28px rgba(15, 23, 42, 0.12);

    /* Motion scale */
    --dur-fast: 0.15s;
    --dur: 0.3s;
    --dur-slow: 0.5s;
    --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

    /* Legacy aliases (kept for backward compatibility) */
    --emerald-strong: var(--brand);
    --emerald-bright: var(--brand-bright);
    --emerald-soft: var(--brand-soft);
    --emerald-light: var(--brand-light);
}

/* --- Sticky nav high-contrast quote CTA --- */
.btn-quote-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--emerald-bright);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-quote-cta:hover {
    background: var(--emerald-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
    color: #ffffff;
}

.btn-quote-cta i {
    font-size: 0.9rem;
}

@media (max-width: 680px) {
    .btn-quote-cta .quote-cta-text {
        display: none;
    }

    .btn-quote-cta {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* --- Hero eyebrow, accent + emerald CTA --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(220, 252, 231, 0.35);
    color: var(--brand-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-accent {
    color: #4ade80;
}

.hero .btn-emerald {
    background: var(--emerald-bright);
    color: #ffffff;
    border-color: var(--emerald-bright);
}

.hero .btn-emerald:hover {
    background: var(--emerald-strong);
    border-color: var(--emerald-strong);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.45);
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-trust-badge i {
    color: #4ade80;
    font-size: 0.9rem;
}

/* --- Hero quick-nav chips (emerald refresh) --- */
.hero-quick-nav {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-quick-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--brand-light);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-quick-chip:hover,
.hero-quick-chip.active {
    background: var(--emerald-bright);
    border-color: var(--emerald-bright);
    color: #ffffff;
}

/* --- Who We Serve audience cards --- */
.eyebrow-category {
    display: inline-block;
    color: var(--emerald-strong);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.who-we-serve {
    background: var(--bg-lighter);
}

.who-we-serve .section-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.audience-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: var(--brand-soft-2);
}

.audience-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--emerald-soft);
    color: var(--emerald-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.audience-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--slate-text);
    letter-spacing: -0.3px;
}

.audience-card p {
    color: var(--slate-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.audience-points {
    list-style: none;
    padding: 0;
    margin: 0 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.audience-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--slate-text);
}

.audience-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--emerald-bright);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.audience-card .link-arrow {
    margin-top: auto;
    color: var(--emerald-strong);
}

.audience-card .link-arrow:hover {
    color: var(--emerald-bright);
}

/* --- Stats strip refinement --- */
.stats {
    background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
    color: #ffffff;
}

.stats-grid {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-number {
    font-weight: 900;
}

.stat-label {
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.92;
}

/* ============================================================
   Authenticated client hub mode (state-based rendering)
   Hides the marketing funnel and shows the dashboard experience
   directly for logged-in clients.
   ============================================================ */

body.hub-authenticated .featured,
body.hub-authenticated #services,
body.hub-authenticated #pricing-calculator,
body.hub-authenticated .project-gallery,
body.hub-authenticated #insights,
body.hub-authenticated .stats,
body.hub-authenticated #about,
body.hub-authenticated .testimonials,
body.hub-authenticated #service-area,
body.hub-authenticated .trust-indicators {
    display: none;
}

body.hub-authenticated .hero {
    min-height: 0;
    padding: 48px 0 72px;
}

body.hub-authenticated .hero-scroll-indicator {
    display: none;
}

/* --- Dashboard status bar (welcome + at-a-glance chips) --- */
.dashboard-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 18px;
    padding: 1.4rem 1.8rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.dash-greeting h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--slate-text);
    letter-spacing: -0.4px;
}

.dash-greeting .dash-property {
    color: var(--slate-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dash-status-chips {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.dash-chip {
    background: var(--bg-light);
    border: 1px solid var(--slate-border);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    text-align: center;
    min-width: 120px;
}

.dash-chip .chip-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-muted);
    margin-bottom: 0.2rem;
}

.dash-chip .chip-value {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--slate-text);
}

.dash-chip .chip-value.text-emerald {
    color: var(--emerald-strong);
}

/* --- Dashboard widget grid (Kaggle-style two columns) --- */
.dashboard-widgets-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-widget {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.dash-widget h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dash-widget h3 i {
    color: var(--emerald-strong);
}

.dash-widget .dash-widget-sub {
    font-size: 0.82rem;
    color: var(--slate-muted);
    font-weight: 500;
    margin-left: auto;
}

.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.dash-action {
    border: 1px solid var(--slate-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--slate-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-action:hover {
    background: var(--emerald-light);
    border-color: var(--brand-soft-2);
}

.dash-action i {
    color: var(--emerald-strong);
    font-size: 1rem;
}

.dash-action.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-card {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-soft) 100%);
    border: 1px solid var(--brand-soft-2);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.plan-card .plan-name {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--emerald-strong);
}

.plan-card .plan-detail {
    font-size: 0.88rem;
    color: var(--brand-dark);
    margin-top: 0.2rem;
}

.plan-card .plan-btn {
    background: #ffffff;
    color: var(--emerald-strong);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.plan-card .plan-btn:hover {
    background: var(--emerald-strong);
    color: #ffffff;
}

.yard-conditions {
    background: linear-gradient(135deg, #fef9c3 0%, var(--earth-tint) 100%);
    border: 1px solid var(--earth-soft);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.yard-conditions .yc-title {
    font-weight: 800;
    font-size: 1rem;
    color: #713f12;
}

.yard-conditions .yc-body {
    font-size: 0.85rem;
    color: var(--earth);
    margin-top: 0.35rem;
}

.visits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visits-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--surface-3);
    font-size: 0.88rem;
}

.visits-list li:last-child {
    border-bottom: none;
}

.visits-list .visit-date {
    color: var(--slate-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 880px) {
    .dashboard-widgets-grid {
        grid-template-columns: 1fr;
    }

    .dash-status-chips {
        width: 100%;
    }

    .dash-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}



/* =========================================================
   Primary action hover (green is the single action colour)
   ========================================================= */
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff;
}

/* =========================================================
   Slim privacy notice (first-party, anonymous analytics only)
   ========================================================= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: translateY(120%);
    opacity: 0;
    border-radius: 0;
    padding: 0.55rem 1rem;
    gap: 0.75rem;
    background: rgba(17, 24, 39, 0.96);
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.cookie-consent.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent .cookie-consent-text p {
    margin: 0;
    font-size: 0.82rem;
}

.cookie-consent .cookie-consent-actions {
    flex-shrink: 0;
}

.cookie-consent .btn-cookie-accept {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .cookie-consent {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.75rem;
    }

    .cookie-consent .cookie-consent-text p {
        font-size: 0.75rem;
    }

    /* Keep the single action sized to its label; the text gets the rest. */
    .cookie-consent .btn-cookie-accept {
        flex: 0 0 auto;
    }
}

/* =========================================================
   Installed app (PWA) shell: compact header, app home, bottom tabs
   ========================================================= */
html.pwa .socials,
body.pwa-standalone .socials,
html.pwa .btn-quote-cta,
body.pwa-standalone .btn-quote-cta,
html.pwa .header-portal-action>.btn-pwa-install,
body.pwa-standalone .header-portal-action>.btn-pwa-install,
html.pwa .directory-mobile-nav .btn-pwa-install,
body.pwa-standalone .directory-mobile-nav .btn-pwa-install,
html.pwa .install-banner,
body.pwa-standalone .install-banner,
html.pwa .cookie-consent,
body.pwa-standalone .cookie-consent {
    display: none !important;
}

html.pwa body,
body.pwa-standalone {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

html.pwa .hero {
    min-height: auto;
}

body.app-mode .hero-quick-nav,
body.app-mode .hero-trust-badges,
body.app-mode #insights,
body.app-mode #about,
body.app-mode #faq,
body.app-mode .audience-section,
body.app-mode .testimonials-section {
    display: none !important;
}

.app-home {
    color: #fff;
}

.app-home-greeting {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 0.25rem;
}

.app-home h1 {
    font-size: 1.7rem;
    margin: 0 0 1.1rem;
    line-height: 1.2;
}

.app-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .app-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 104px;
    padding: 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.app-tile i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.05rem;
}

.app-tile small {
    display: block;
    font-weight: 400;
    color: var(--slate-soft);
    font-size: 0.78rem;
}

.app-tile.app-tile-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.app-tile.app-tile-primary i {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.app-tile.app-tile-primary small {
    color: rgba(255, 255, 255, 0.85);
}

.app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: #ffffff;
    border-top: 1px solid var(--slate-border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.app-tabbar a,
.app-tabbar button {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: var(--slate-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
}

.app-tabbar i {
    font-size: 1.2rem;
}

.app-tabbar .is-active {
    color: var(--brand);
}

html.pwa .btn,
html.pwa .form-control {
    min-height: 48px;
}

/* Header focus for narrower tablets: collapse the action cluster (socials are
   already hidden at <=1420px) and shrink the primary CTA to an icon. */
@media (max-width: 900px) {

    /* Keep the tablet header focused on one primary action and the menu. */
    .btn-quote-cta .quote-cta-text {
        display: none;
    }

    .btn-quote-cta {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .header-actions-group {
        gap: 0.55rem;
    }

    .header-portal-action {
        gap: 0.4rem;
    }
}

/* PWA App Responsive Layout (Kenya Power MyPower App style native feel) */
@media (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
        background-color: var(--brand-surface);
    }

    .header-actions-group .socials,
    .socials {
        display: none !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

html.pwa body,
body.pwa-standalone {
    -webkit-user-select: none;
    user-select: none;
    background-color: var(--brand-surface);
}

html.pwa .header-actions-group .socials,
body.pwa-standalone .header-actions-group .socials,
html.pwa .socials,
body.pwa-standalone .socials {
    display: none !important;
}

html.pwa .container,
body.pwa-standalone .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Constrain wide screens when running in PWA app mode to feel like an authentic mobile app */
@media (min-width: 768px) {
    html.pwa body,
    body.pwa-standalone {
        max-width: 540px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-height: 100vh !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.18) !important;
        position: relative !important;
    }

    html.pwa #main-header,
    body.pwa-standalone #main-header {
        max-width: 540px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    html.pwa .app-tabbar,
    body.pwa-standalone .app-tabbar {
        max-width: 540px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border-radius: 16px 16px 0 0 !important;
    }

    html.pwa .calc-mobile-bar,
    body.pwa-standalone .calc-mobile-bar {
        max-width: 540px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* ==========================================================
   P1 — Proof strip, commercial band, calculator enhancements
   ========================================================== */

/* Proof strip (social proof directly under the hero) */
.proof-strip {
    background: var(--brand-forest);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-item:first-child {
    border-left: none;
}

.proof-number {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 900;
    color: var(--brand-glow);
    line-height: 1.15;
}

.proof-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.3px;
}

@media (max-width: 640px) {
    .proof-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .proof-item:nth-child(3) {
        border-left: none;
    }
}

/* Hero inline B2B link */
.hero-b2b-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.55rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.hero-b2b-link:hover {
    border-bottom-color: var(--brand-glow);
}

/* Commercial & estates band */
.b2b-band {
    background: var(--surface-2);
    border-top: 1px solid var(--slate-border);
    border-bottom: 1px solid var(--slate-border);
}

.b2b-band-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0;
}

.b2b-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
}

.b2b-band h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.b2b-band-copy>p {
    color: var(--slate-soft);
    max-width: 620px;
    margin-bottom: 1.25rem;
}

.b2b-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.25rem;
    margin: 0 0 1.75rem;
    padding: 0;
}

.b2b-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--slate-strong);
}

.b2b-points i {
    color: var(--brand);
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

.b2b-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.b2b-secondary-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.b2b-secondary-link:hover {
    text-decoration: underline;
}

.b2b-band-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.b2b-stat {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.b2b-stat strong {
    display: block;
    font-size: 1.05rem;
    color: var(--ink);
}

.b2b-stat span {
    font-size: 0.85rem;
    color: var(--slate-muted);
}

@media (max-width: 900px) {
    .b2b-band-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .b2b-points {
        grid-template-columns: 1fr;
    }
}

/* Calculator: "what happens next" steps */
.calc-next-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-soft-2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--slate-strong);
}

.calc-next-steps .step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-next-steps strong {
    color: var(--ink);
}

/* Calculator: mobile sticky action bar (calculator page only) */
.calc-mobile-bar {
    display: none;
}

@media (max-width: 900px) {
    .calc-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-top: 1px solid var(--slate-border);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
    }

    .calc-mobile-bar-total {
        display: flex;
        flex-direction: column;
        line-height: 1.15;
    }

    .calc-mobile-bar-total span {
        font-size: 0.7rem;
        color: var(--slate-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .calc-mobile-bar-total strong {
        font-size: 1.25rem;
        color: var(--brand);
        font-weight: 900;
    }

    .calculator-page-section {
        padding-bottom: 90px;
    }

    html.pwa .calc-mobile-bar,
    body.pwa-standalone .calc-mobile-bar {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    html.pwa .calculator-page-section,
    body.pwa-standalone .calculator-page-section {
        padding-bottom: 150px;
    }
}

/* ==========================================================
   Motion safety — honor the user's reduced-motion preference.
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}