/* =====================================================================
   HERPAVILION — MAIN STYLESHEET
   Single stylesheet for the entire platform (public site + all portals).
   Do not create additional CSS files — extend this one, in the section
   it belongs to.
   ===================================================================== */

/* =====================================================================
   RESET
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

fieldset {
    border: none;
}

/* =====================================================================
   VARIABLES
   ===================================================================== */
:root {
    /* Brand */
    --primary: #0B1F3A;
    --primary-dark: #07162A;
    --primary-light: #12305C;
    --primary-50: #EEF2F7;
    --accent: #F28C28;
    --accent-dark: #D9741A;
    --accent-light: #FDEEDD;

    /* Neutrals */
    --white: #FFFFFF;
    --text: #1F2937;
    --muted: #6B7280;
    --light: #F5F7FA;
    --light-2: #EEF1F5;
    --border: #E5E7EB;
    --dark: #10141C;

    /* Status */
    --success: #1E9E5A;
    --success-bg: #E7F7EF;
    --warning: #D9A400;
    --warning-bg: #FFF6DD;
    --danger: #DC2626;
    --danger-bg: #FDEAEA;
    --info: #2563EB;
    --info-bg: #EAF1FE;

    /* Status: lands */
    --status-available: #1E9E5A;
    --status-reserved: #D9A400;
    --status-sold: #DC2626;

    /* Typography */
    --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

    /* Layout */
    --container-width: 1240px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
    --shadow-lg: 0 16px 40px rgba(11, 31, 58, 0.16);

    /* Motion */
    --transition: all 0.2s ease;
    --transition-slow: all 0.35s ease;

    /* Chrome heights */
    --header-height: 84px;
    --sidebar-width: 264px;
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { color: var(--text); }

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
}

.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}

/* =====================================================================
   GLOBAL
   ===================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: clamp(3rem, 2.4rem + 3vw, 6rem);
}

.section-bg-light { background: var(--light); }
.section-bg-primary {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
}
.section-bg-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 20%, rgba(242, 140, 40, 0.16), transparent 50%),
                radial-gradient(circle at 88% 80%, rgba(242, 140, 40, 0.12), transparent 45%);
    pointer-events: none;
}
.section-bg-primary .container { position: relative; }
.section-bg-primary h2,
.section-bg-primary h3 { color: var(--white); }

/* =====================================================================
   SCROLL-REVEAL — [data-reveal] elements fade/slide in as they enter
   the viewport (assets/js/main.js's scrollReveal()). Stagger a group by
   setting --reveal-delay on each item. Falls back to fully visible when
   IntersectionObserver is unavailable or motion is reduced.
   ===================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Gradient text — used sparingly on hero headlines for one accent phrase. */
.text-gradient {
    background: linear-gradient(100deg, var(--accent) 0%, #FFB067 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header {
    max-width: 640px;
    margin-bottom: 2.75rem;
}

.section-header.center {
    margin-inline: auto;
    text-align: center;
}

.section-header h2 {
    margin-top: 0.75rem;
}

.section-header p {
    margin-top: 0.85rem;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.75rem;
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.6rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }

.divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin-block: 2rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 999;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-available { color: var(--status-available); background: var(--success-bg); }
.badge-reserved { color: var(--status-reserved); background: var(--warning-bg); }
.badge-sold { color: var(--status-sold); background: var(--danger-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-neutral { color: var(--muted); background: var(--light-2); }

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    font-size: 1.75rem;
}

.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

.loading-spinner.dark {
    border-color: var(--border);
    border-top-color: var(--primary);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease both;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.site-logo img {
    height: 42px;
    width: auto;
}

.site-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Scoped to .header-actions (not just .header-cta) so this reliably beats
   .btn's own `display: inline-flex` — same specificity, but .btn comes
   later in the cascade and was silently winning, leaving the button
   visible on mobile and pushing .header-actions wider than the screen. */
.header-actions .header-cta {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    margin-inline: auto;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--white);
    transform: translateX(100%);
    transition: var(--transition-slow);
    overflow-y: auto;
    z-index: 190;
    padding: 1.5rem;
}

.main-nav.is-open {
    transform: translateX(0);
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Scoped to .main-nav ul (not the broader .main-nav a) so this doesn't
   also repaint the Dashboard/Login/Logout buttons in .nav-mobile-cta —
   those are a sibling of the <ul>, not inside it, but .main-nav a used
   to catch them too and, being more specific than .btn-secondary's own
   color rule, forced navy text onto their navy background. */
.main-nav ul a {
    display: block;
    padding: 0.9rem 0.5rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.main-nav ul a.active,
.main-nav ul a:hover {
    color: var(--accent);
}

.main-nav .nav-mobile-cta {
    margin-top: 1.5rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border: none;
    background: none;
    padding: 0.9rem 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-align: left;
}

.nav-dropdown-toggle.active {
    color: var(--accent);
}

.nav-dropdown-menu {
    display: none;
    padding-left: 1rem;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-toggle .chevron {
    margin-left: auto;
    transition: var(--transition);
    font-size: 0.75rem;
}

.nav-dropdown.is-open .chevron {
    transform: rotate(180deg);
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Generic avatar component — usable as either <img class="avatar"> (a
   real photo) or <span class="avatar">T</span> (initials fallback when
   no photo is set). Shared base styles work for both: object-fit only
   affects the img case, flex-centering only affects the span case. Size
   is set per context (.user-menu-trigger .avatar, .avatar-lg, etc). */
.avatar {
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    object-fit: cover;
    flex-shrink: 0;
}

.user-menu-trigger .avatar {
    width: 38px;
    height: 38px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

.profile-photo-uploader {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.profile-photo-uploader .form-control {
    flex: 1;
    min-width: 200px;
}

.user-menu-trigger .chevron {
    font-size: 0.7rem;
    color: var(--muted);
    transition: var(--transition);
}

.user-menu.is-open .user-menu-trigger .chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.5rem;
    display: none;
    z-index: 220;
}

.user-menu.is-open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text);
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
    background: var(--light);
    color: var(--accent-dark);
}

.notification-bell {
    position: relative;
}

.notification-bell .bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 3px;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    max-height: 420px;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: none;
    z-index: 220;
}

.notification-bell.is-open .notification-panel {
    display: block;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.notification-item.is-unread {
    background: var(--primary-50);
}

.notification-item:last-child {
    border-bottom: none;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-dark);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-outline-white:hover:not(:disabled) {
    background: var(--white);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--light);
}

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

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

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

.btn-whatsapp:hover:not(:disabled) {
    background: #1da851;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.05rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    color: var(--muted);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--light);
    color: var(--primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding-block: clamp(3.5rem, 3rem + 3vw, 7rem);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 20%, rgba(242, 140, 40, 0.18), transparent 55%);
    pointer-events: none;
}

/* Slow-floating soft-glow blobs — pure CSS, no images, kept behind the
   content (z-index unset, hero-content/media get position:relative via
   .hero .container) for ambient depth without competing for attention. */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.55;
}
.hero-blob-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.35), transparent 70%);
    animation: floatBlob 14s ease-in-out infinite;
}
.hero-blob-2 {
    width: 260px;
    height: 260px;
    bottom: -60px;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
    animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob { animation: none; }
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin-bottom: 2rem;
}

/* Layered two-image collage — one large "primary" shot (real estate) with
   a smaller "secondary" shot (cleaning) overlapping its bottom-left
   corner, framed in a white border like a stacked photo print. Needs
   breathing room on all sides for the secondary image's offset, hence
   the margins instead of the old overflow:hidden single-image box. */
.hero-media {
    position: relative;
    margin: 0 1.5rem 2.5rem 0;
}

.hero-media-primary {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.hero-media-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(11, 31, 58, 0.72);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
}

.hero-media-secondary {
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 65%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    z-index: 2;
}

.hero-media-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media-secondary .hero-media-tag {
    left: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(242, 140, 40, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1.1;
}

.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
    text-align: center;
}

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

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0.75rem auto 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    justify-content: center;
    margin-top: 1rem;
}

.breadcrumbs a { color: rgba(255, 255, 255, 0.9); }

/* =====================================================================
   SECTIONS (division selector, process steps, stats, testimonials)
   ===================================================================== */
.division-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.division-card {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--light);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-slow);
}

.division-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.08), transparent 70%);
    pointer-events: none;
    transition: var(--transition-slow);
}

.division-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.division-card:hover::after {
    transform: scale(1.3);
}

.division-card .division-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.division-card:hover .division-icon {
    transform: scale(1.08) rotate(-4deg);
}

.division-card h3 { margin-bottom: 0.75rem; }
.division-card p { color: var(--muted); margin-bottom: 1.5rem; }

/* =====================================================================
   LOGIN PERKS (homepage, guests only) — "why log in" panel with a
   two-column benefit checklist and a decorative mock-dashboard preview.
   Same dark-gradient + floating-blob language as .hero/.section-bg-primary
   for visual consistency, scoped to its own classes since it's a rounded
   inset panel rather than a full-bleed section.
   ===================================================================== */
.login-perks-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 2rem + 2vw, 4rem);
    overflow: hidden;
}

.login-perks-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    top: -120px;
    right: -80px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.3), transparent 70%);
    animation: floatBlob 16s ease-in-out infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .login-perks-blob { animation: none; }
}

.login-perks-content { position: relative; }

.login-perks-content h2 { color: var(--white); margin-bottom: 0.75rem; }

.login-perks-content > p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin-bottom: 2rem;
}

.login-perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.25rem;
}

.login-perk-group h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.2);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-perks-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.login-perks-mockup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
    transform: rotate(-2deg);
    box-shadow: var(--shadow-lg);
}

.login-perks-mockup-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 128px;
    height: 100px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.login-perks-mockup-tile:nth-child(2) { transform: translateY(10px); }
.login-perks-mockup-tile:nth-child(3) { transform: translateY(-6px); }

.login-perks-mockup-icon {
    font-size: 1.4rem;
}

@media (max-width: 991.98px) {
    .login-perks-panel { grid-template-columns: 1fr; }
    .login-perks-visual { display: none; }
}

@media (max-width: 575.98px) {
    .login-perks-grid { grid-template-columns: 1fr; }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-top: 0.5rem;
}

.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

.pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--light-2);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.pipeline-step.is-complete {
    background: var(--success-bg);
    color: var(--success);
}

.pipeline-step.is-current {
    background: var(--accent);
    color: var(--white);
}

.pipeline-arrow {
    color: var(--border);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-block {
    text-align: center;
}

.stat-block strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent);
}

.stat-block span {
    color: var(--muted);
    font-size: 0.9rem;
}

.testimonial-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-slow);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--accent-light);
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong { display: block; color: var(--primary); }
.testimonial-author span { font-size: 0.82rem; color: var(--muted); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light-2);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-media .badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
}

.card-media .card-featured {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--accent);
    color: var(--white);
}

.card-body {
    padding: 1.4rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.card-price small {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
}

.card-footer {
    display: flex;
    gap: 0.6rem;
    padding: 0 1.4rem 1.4rem;
}

.card-footer .btn {
    flex: 1;
}

/* Land / listing grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Icon feature card (used by cleaning services, "why choose us") */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    text-align: left;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    transform: scale(1.08);
}

.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* Team member card (team.php) */
.team-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.team-card .avatar {
    margin-bottom: 1.1rem;
    font-size: 2.25rem;
}

.team-card h4 { margin-bottom: 0.6rem; }

/* Stat card (dashboards) */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

.stat-card.accent .stat-icon {
    background: var(--accent-light);
    color: var(--accent-dark);
}

/* =====================================================================
   FORMS
   ===================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.form-label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236B7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.4rem;
    display: none;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid ~ .form-error,
.form-group.has-error .form-error {
    display: block;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-check input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-group-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    background: none;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.auth-card {
    max-width: 460px;
    margin-inline: auto;
}

/* Dense prose pages (Terms, Privacy) — h1/h2 here read as section titles
   sized for the homepage hero, far too large for an article subheading. */
.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

/* Search / filter bar */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.filter-bar form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: end;
}

.filter-bar .filter-submit {
    grid-column: -1;
}

.filter-bar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-toggle {
    display: none;
}

.filter-drawer-backdrop {
    display: none;
}

/* =====================================================================
   REAL ESTATE
   ===================================================================== */
.land-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.land-gallery .gallery-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
}

.land-gallery .gallery-thumbs {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 0.75rem;
}

.land-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.land-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.land-info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.land-info-item span:first-child { color: var(--muted); }
.land-info-item span:last-child { font-weight: 600; color: var(--primary); }

.feature-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--light);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--primary);
}

.sticky-enquiry-box {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.sticky-enquiry-box .price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light);
    border-radius: var(--radius-md);
}

.agent-card img,
.agent-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* "Other Cleaning Services" sidebar links (includes/cleaning-sidebar.php) */
.sidebar-service-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-service-link:last-of-type {
    border-bottom: none;
}

.sidebar-service-link:hover {
    color: var(--accent);
}

.sidebar-service-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-2);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================================
   CLEANING
   ===================================================================== */
.service-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.before-after {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after .ba-label {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    background: rgba(11, 31, 58, 0.85);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.booking-summary {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.booking-summary-row:last-child { border-bottom: none; }

.booking-reference-box {
    text-align: center;
    padding: 2.5rem;
    background: var(--success-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.booking-reference-box .ref-code {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* =====================================================================
   DASHBOARDS
   ===================================================================== */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 150;
    transition: var(--transition-slow);
}

.dashboard-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.dashboard-sidebar .sidebar-brand img { height: 36px; }
.dashboard-sidebar .sidebar-brand span {
    font-family: var(--font-heading);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar-nav .nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    padding: 1rem 0.75rem 0.4rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.sidebar-nav a.active {
    background: var(--accent);
    color: var(--white);
}

.sidebar-nav .nav-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-topbar {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding-inline: 1.75rem;
    position: sticky;
    top: 0;
    z-index: 120;
}

/* Scoped to the dashboard topbar only — .header-actions is shared with the
   public navbar, where justify-content:space-between on 3 siblings already
   works correctly and shouldn't be touched. Here .sidebar-toggle is
   display:none on desktop, leaving .header-actions as the lone flex item;
   space-between places a single item at flex-start (left), not the end, so
   an explicit margin-left:auto is what actually pins it to the right,
   regardless of whether the toggle is present. */
.dashboard-topbar .header-actions {
    margin-left: auto;
}

.dashboard-content {
    padding: 1.75rem;
    flex: 1;
}

.sidebar-toggle {
    display: none;
}

.dashboard-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dashboard-page-header h1 {
    font-size: 1.5rem;
}

.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 { font-size: 1.05rem; }
.panel-body { padding: 1.5rem; }

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    min-width: 640px;
    background: var(--white);
}

.data-table thead {
    background: var(--light);
}

.data-table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0.9rem 1.25rem;
}

.data-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--light);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.table-search {
    position: relative;
    max-width: 280px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--primary);
}

.pagination a:hover {
    background: var(--light);
}

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

/* =====================================================================
   MODALS
   ===================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 400;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.25s ease both;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.modal-close:hover {
    background: var(--light);
    color: var(--danger);
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

body.modal-open {
    overflow: hidden;
}

/* Intent popup — real estate vs. cleaning, shown 5s after page load
   on public pages (see includes/footer.php + main.js intentPopup()). */
.intent-popup {
    max-width: 460px;
    text-align: center;
}

.intent-popup .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.intent-popup .modal-header h3 {
    flex: 1;
    text-align: center;
    font-size: 1.4rem;
}

.intent-popup .modal-body {
    padding-top: 0.5rem;
}

.intent-popup .modal-body > p {
    color: var(--muted);
}

.intent-popup-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.intent-popup-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.intent-popup-choice:hover {
    border-color: var(--secondary);
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.intent-popup-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.12);
}

.intent-popup-disable {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
}

.intent-popup-disable:hover {
    color: var(--danger);
}

@media (max-width: 479.98px) {
    .intent-popup-choices {
        grid-template-columns: 1fr;
    }
}

/* Lightbox (image gallery) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 22, 42, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   ALERTS
   ===================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; }

.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(30, 158, 90, 0.25); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(220, 38, 38, 0.25); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(217, 164, 0, 0.25); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: rgba(37, 99, 235, 0.25); }

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 1.25rem;
    background: var(--warning);
    color: var(--dark);
    font-size: 0.88rem;
    text-align: center;
}

.impersonation-banner .btn {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    padding: 0.3rem 0.9rem;
}

.impersonation-banner .btn:hover { opacity: 0.85; }

.alert-close {
    margin-left: auto;
    color: inherit;
    opacity: 0.6;
}

.alert-close:hover { opacity: 1; }

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
}

.toast-container .alert {
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .site-logo span { color: var(--white); }

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover { color: var(--accent); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
}

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

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-lg);
    z-index: 180;
    transition: var(--transition);
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 195;
    max-width: 640px;
    margin: 0 auto;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-banner.is-visible {
    display: flex;
}

.cookie-consent-banner p {
    margin: 0;
    color: var(--white);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cookie-consent-banner a {
    color: var(--accent);
    text-decoration: underline;
}

/* App-style bottom tab bar (public site, mobile only — see the
   max-width:767.98px block below for the breakpoint that reveals it) */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 190;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-bottom-nav-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-bottom-nav-list li {
    flex: 0 1 72px;
    min-width: 0;
}

.app-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    width: 100%;
    padding: 0.4rem 0.15rem 0.35rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray, #6b7280);
    text-decoration: none;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bottom-nav-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.app-bottom-nav-link.is-active,
.app-bottom-nav-link[aria-expanded="true"] {
    color: var(--secondary);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 992px) {
    .hamburger { display: none; }

    .main-nav {
        position: static;
        transform: none;
        inset: auto;
        overflow: visible;
        padding: 0;
        flex: 1;
    }

    .main-nav ul {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .main-nav ul a {
        border-bottom: none;
        padding: 0.6rem 0.9rem;
        border-radius: var(--radius-sm);
    }

    .main-nav ul a:hover { background: var(--light); }

    .nav-dropdown-toggle {
        width: auto;
        border-bottom: none;
        padding: 0.6rem 0.9rem;
        border-radius: var(--radius-sm);
    }

    .nav-dropdown-toggle:hover { background: var(--light); }

    .main-nav .nav-mobile-cta { display: none; }

    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: 0.5rem;
        min-width: 200px;
        padding-left: 0.5rem;
    }

    .nav-dropdown.is-open .nav-dropdown-menu,
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }

    .header-actions .header-cta {
        display: inline-flex;
    }

    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .service-icon-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    :root { --header-height: 72px; }

    .hero .container { grid-template-columns: 1fr; }
    .hero-media { order: -1; }

    .division-cards { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }

    .filter-bar form {
        grid-template-columns: repeat(2, 1fr);
        display: none;
    }

    .filter-bar.is-open form {
        display: grid;
    }

    .filter-bar-header {
        display: flex;
    }

    .filter-toggle {
        display: inline-flex;
    }

    .land-info-list { grid-template-columns: 1fr; }

    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(11, 31, 58, 0.5);
        z-index: 140;
    }

    .sidebar-backdrop.is-open { display: block; }
}

@media (max-width: 767.98px) {
    .hero-media { margin: 1.5rem 1rem 3rem 0.75rem; }
    .hero-media-secondary { width: 66%; right: -0.75rem; bottom: -1.75rem; border-width: 3px; }

    .listing-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-icon-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr 1fr; }

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

    .land-gallery { grid-template-columns: 1fr; }
    .land-gallery .gallery-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }

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

    .card-footer { flex-direction: column; }

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

    .data-table th, .data-table td { padding: 0.75rem 0.9rem; }

    .dashboard-topbar .header-actions { gap: 0.5rem; }
    .user-menu-trigger .user-name { display: none; }

    /* App-style bottom tab bar — public pages only (body:not(.is-dashboard)
       scopes this even though footer.php already withholds the markup on
       dashboard pages, so nothing needs to change if that ever shifts). */
    body:not(.is-dashboard) .app-bottom-nav { display: block; }
    body:not(.is-dashboard) { padding-bottom: 64px; }
    body:not(.is-dashboard) .whatsapp-float { bottom: calc(64px + 1rem); }
    body:not(.is-dashboard) .cookie-consent-banner { bottom: calc(64px + 1rem); }
}

@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; }
    /* whatsapp-float only ever renders on public pages (footer.php),
       so no .is-dashboard exception is needed here. */
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; right: 1rem; bottom: calc(64px + 1rem); }
    .btn { width: 100%; }
    .btn-group .btn,
    .card-footer .btn,
    .header-actions .btn { width: auto; }
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer .btn { width: 100%; }
}
