
:root {
    --ash-green:        #4a7c59;
    --ash-green-light:  #6a9e72;
    --ash-green-dark:   #2e5235;
    --ash-panel-bg:     rgba(20, 30, 22, 0.45);
    --ash-panel-border: rgba(106, 158, 114, 0.35);
    --ash-pill-bg:      rgba(74, 124, 89, 0.72);
    --ash-pill-hover:   rgba(74, 124, 89, 0.95);
    --ash-category-bg:  rgba(74, 124, 89, 0.60);
    --text-primary:     #e8f5ea;
    --text-muted:       rgba(232, 245, 234, 0.65);
}

/* ── STICKY BACKGROUND ─────────────────────────────────────── */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    /* The background is fixed (sticky) — content scrolls over it */
    background-image: url('background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Subtle dark overlay so text stays readable against any part of the photo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
    160deg,
    rgba(0,0,0,0.22) 0%,
    rgba(10,25,12,0.30) 60%,
    rgba(0,0,0,0.18) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT WRAPPER ────────────────────────────────────────── */
.portal-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ────────────────────────────────────────────────── */
.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.6rem 2.2rem 0.8rem;
}

.portal-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #0d1f12;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.18);
    line-height: 1.1;
}

/* Date / Time / Weather block */
.portal-meta {
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    min-width: 180px;
}

.portal-meta .clock {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
}

.portal-meta .dateline {
    font-size: 0.82rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.portal-meta .weather-line {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    opacity: 0.9;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.portal-body {
    flex: 1;
    padding: 0.6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* ── CATEGORY PANEL ────────────────────────────────────────── */
.category-panel {
    background: var(--ash-panel-bg);
    border: 1px solid var(--ash-panel-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 1.2rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

/* Category label pill at top-left */
.category-label {
    display: inline-block;
    margin-top: -0.75rem;         /* overlap the panel border */
    margin-bottom: 1rem;
    padding: 0.3rem 1.1rem;
    background: var(--ash-category-bg);
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-primary);
    border: 1px solid rgba(106,158,114,0.5);
    backdrop-filter: blur(4px);
}

/* ── SERVICE GRID ──────────────────────────────────────────── */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── SERVICE PILL / BUTTON ─────────────────────────────────── */
.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    background: var(--ash-pill-bg);
    border: 1px solid rgba(106, 158, 114, 0.45);
    border-radius: 2.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    white-space: nowrap;
    cursor: pointer;
}

.service-btn:hover {
    background: var(--ash-pill-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.38);
    color: #fff;
}

.service-btn:active {
    transform: translateY(0);
}

/* Square icon container inside each pill */
.service-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 0.6rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .portal-header { padding: 1rem 1rem 0.5rem; }
    .portal-body   { padding: 0.5rem 1rem 1.5rem; }
    .portal-title  { font-size: 1.7rem; }
}