/* ============================================================================
   GjejPronën — shared app shell: design tokens, web fonts, unified header, buttons.
   Class names are `gp-` prefixed so they never collide with a page's own CSS.
   Load this <link> on any page; include nav.html / footer.html to get the chrome.

   2026 REDESIGN — warm, premium "earthy green" system.
   Only design values changed; every class name + selector kept identical so
   all existing pages (and their JS) keep working untouched.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* ===== CANONICAL palette — SINGLE SOURCE OF TRUTH. Re-theme the whole site
       by editing these ~20 values only. Teal & Blue. ===== */
    --gp-primary:       #0f766e;   /* teal — primary action       */
    --gp-primary-dark:  #115e59;   /* primary hover               */
    --gp-primary-light: #14b8a6;   /* lighter teal                */
    --gp-accent:        #0369a1;   /* blue — accent / links       */
    --gp-accent-light:  #0ea5e9;
    /* Accent for text/borders sitting on dark surfaces. --gp-accent (#0369a1) was
       chosen for white backgrounds; on the map's slate/teal panels it measures
       2.47:1 - failing on every price it coloured. This one passes. */
    --gp-accent-on-dark: var(--gp-accent-light);
    --gp-navy:          #134e4a;   /* dark teal — header/footer   */
    --gp-navy-deep:     #0b3b38;
    --gp-amber:         #c0894a;   /* premium gold (investor)     */
    /* Neutrals */
    --gp-ink:           #13302d;   /* near-black headings         */
    --gp-text:          #475569;   /* body text                   */
    --gp-muted:         #64748b;   /* secondary text              */
    --gp-muted-2:       #94a3b8;   /* tertiary / placeholder      */
    --gp-on-dark:       #cbd5e1;   /* text on dark surfaces       */
    --gp-line:          #cdeae6;   /* borders                     */
    --gp-line-2:        #99f6e4;
    --gp-tint:          #ccfbf1;   /* light teal chip/fill        */
    --gp-tint-2:        #ecfdf8;
    --gp-bg:            #f0fdfa;   /* page background (mint)       */
    --gp-bg-alt:        #eefcfa;
    --gp-card:          #f5fdfc;   /* card / surface              */
    /* Status (semantic — keep distinct from brand) */
    --gp-success:       #10b981;
    --gp-warning:       #f59e0b;
    --gp-danger:        #ef4444;
    /* rgb companions for rgba() overlays */
    --gp-primary-rgb:   15, 118, 110;
    --gp-navy-rgb:      19, 78, 74;
    --gp-accent-rgb:    3, 105, 161;
    --gp-amber-rgb:     192, 137, 74;
    /* legacy aliases — kept so existing rules keep resolving to one source */
    --gp-blue:      var(--gp-primary);
    --gp-blue-600:  var(--gp-primary-dark);
    --gp-blue-300:  var(--gp-accent);
    --gp-green:     var(--gp-primary);
    --gp-orange:    var(--gp-accent);
    /* Shape & depth */
    --gp-radius:    12px;
    --gp-radius-lg: 18px;
    --gp-shadow:    0 8px 24px rgba(19,78,74,0.10);
    --gp-shadow-lg: 0 20px 50px rgba(19,78,74,0.18);
    /* Type */
    --gp-font:         'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gp-font-display: 'Spectral', Georgia, 'Times New Roman', serif;
}

/* ── Unified header — cream, glassy, pill CTA ───────────────────────────── */
.gp-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(240,253,250,0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 0 36px; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--gp-font);
    border-bottom: 1px solid var(--gp-line);
}
.gp-brand { color: var(--gp-navy); font-weight: 800; font-size: 1.28rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; font-family: var(--gp-font-display); }
.gp-brand span { color: var(--gp-blue-300); }
.gp-nav-links { display: flex; align-items: center; gap: 26px; }
.gp-nav-links a {
    color: var(--gp-text); font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px; transition: color 0.15s;
}
.gp-nav-links a:hover { color: var(--gp-navy); }
.gp-nav-links a.is-accent { color: var(--gp-blue-300); font-weight: 600; }
.gp-nav-links a.is-invest { color: var(--gp-amber); font-weight: 600; }
.gp-btn-nav {
    background: var(--gp-navy); color: var(--gp-bg) !important;
    padding: 10px 20px; border-radius: 999px; font-weight: 600;
}
.gp-btn-nav:hover { background: var(--gp-navy-deep); }

/* Hamburger — hidden on desktop, shown ≤860px */
.gp-nav-burger {
    display: none; align-items: center; justify-content: center;
    /* 44x44 is the minimum reliable touch target — this is the most-tapped
       control on the site and it only ever shows on phones. */
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: rgba(var(--gp-navy-rgb), 0.08); border: none; border-radius: 10px;
    color: var(--gp-navy); font-size: 1.25rem; cursor: pointer; transition: background 0.15s;
}
.gp-nav-burger:hover { background: rgba(var(--gp-navy-rgb), 0.16); }

@media (max-width: 860px) {
    /* iOS Safari zooms the whole page in when a focused field is under 16px — and it
       does not zoom back out afterwards, leaving the user stranded mid-form. 16px is
       the threshold, not a preference. */
    input:not([type=range]):not([type=checkbox]):not([type=radio]),
    select, textarea { font-size: 16px; }

    .gp-nav { padding: 8px 16px; height: auto; flex-wrap: wrap; gap: 6px; }
    .gp-nav-burger { display: inline-flex; }
    .gp-nav-links {
        display: none; flex-basis: 100%; flex-direction: column;
        align-items: stretch; gap: 0; padding: 4px 0 8px;
    }
    .gp-nav-links.is-open { display: flex; }
    .gp-nav-links a {
        font-size: 0.95rem; padding: 12px 10px; border-radius: 10px;
        border-bottom: 1px solid var(--gp-line);
    }
    .gp-nav-links a:last-child { border-bottom: none; }
    .gp-btn-nav { text-align: center; justify-content: center; margin-top: 6px; }
}

/* ── Button system ──────────────────────────────────────────────────────── */
.gp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--gp-font); font-weight: 700; font-size: 0.92rem;
    border-radius: 999px; padding: 12px 24px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.gp-btn-primary   { background: var(--gp-navy); color: var(--gp-bg); box-shadow: 0 8px 20px rgba(var(--gp-navy-rgb), 0.22); }
.gp-btn-primary:hover { background: var(--gp-navy-deep); transform: translateY(-1px); }
.gp-btn-secondary { background: #fff; color: var(--gp-navy); border-color: var(--gp-line); }
.gp-btn-secondary:hover { border-color: var(--gp-navy); }
.gp-btn-ghost     { background: transparent; color: var(--gp-navy); }
.gp-btn-ghost:hover { background: rgba(var(--gp-primary-rgb), 0.08); }
.gp-btn-accent    { background: var(--gp-blue-300); color: var(--gp-bg); }
.gp-btn-accent:hover { background: var(--gp-accent); transform: translateY(-1px); }
.gp-btn-lg { padding: 15px 34px; font-size: 1rem; }      /* hero / CTA size */
.gp-btn-ghost-light { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); color: #fff; }
.gp-btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

/* Contact action buttons — full-width CTAs in project/apartment contact sidebars.
   Shared by projects/detail + projects/apartment_detail (were duplicated per-page). */
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.contact-btn {
    padding: 12px 18px; border-radius: 10px; text-decoration: none;
    font-weight: 700; font-size: 0.9rem; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer;
}
.contact-btn-primary { background: linear-gradient(135deg, var(--gp-primary), var(--gp-navy)); color: #fff; }
.contact-btn-secondary { background: var(--gp-bg-alt); color: var(--gp-ink); }
.contact-btn-call { background: #d1fae5; color: #065f46; }
.contact-btn-whatsapp { background: #25d366; color: #fff; }
.contact-btn-whatsapp:hover { background: #1da851; color: #fff; }

/* Verified-developer badge — trust signal on listings + detail pages. */
.gp-verified {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--gp-tint); color: var(--gp-primary-dark);
    padding: 2px 8px; border-radius: 20px;
    font-size: 0.66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.03em; vertical-align: middle;
}

/* ── Card system — one canonical surface; pages add content classes + optional
   .gp-card-hover. Replaces the per-page .prop-card/.path-card/.feat-card/.fav-card
   duplicates (same look). ───────────────────────────────────────────────────── */
.gp-card {
    background: #fff; border: 1px solid var(--gp-bg-alt); border-radius: 16px;
    overflow: hidden; text-decoration: none; color: inherit; display: block;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gp-card-col { display: flex; flex-direction: column; }   /* equal-height grid cards */
.gp-card img { transition: transform 0.4s ease; }
.gp-card-hover:hover { transform: translateY(-4px); box-shadow: var(--gp-shadow-lg); }
.gp-card-hover:hover img { transform: scale(1.06); }

/* ── Shared footer — deep green ─────────────────────────────────────────── */
.gp-footer { background: var(--gp-navy-deep); color: #8FA096; font-family: var(--gp-font); padding: 56px 36px 0; }
.gp-footer-inner {
    max-width: 1180px; margin: 0 auto; display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
.gp-footer-col h4 { color: var(--gp-bg); font-size: 0.92rem; font-weight: 700; margin: 0 0 14px; }
.gp-footer-col a { display: block; color: #8FA096; text-decoration: none; font-size: 0.86rem; margin-bottom: 9px; transition: color 0.15s; }
/* Comfortable tap target for the footer links on touch (they were ~17px tall). */
@media (pointer: coarse), (max-width: 860px) {
    .gp-footer-col a { padding: 6px 0; margin-bottom: 4px; }
}
.gp-footer-col a:hover { color: var(--gp-blue-300); }
.gp-footer-logo { font-size: 1.35rem; font-weight: 800; color: var(--gp-bg); text-decoration: none; font-family: var(--gp-font-display); }
.gp-footer-logo span { color: var(--gp-blue-300); }
.gp-footer-brand p { font-size: 0.86rem; line-height: 1.65; margin: 12px 0 0; max-width: 300px; }
.gp-footer-bottom {
    max-width: 1180px; margin: 40px auto 0; padding: 22px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: var(--gp-muted);
}
@media (max-width: 760px) {
    .gp-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
    .gp-footer-brand { grid-column: 1 / -1; }
}

/* ── Accessibility ──────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--gp-blue-300);
    outline-offset: 2px;
    border-radius: 4px;
}
.gp-nav-links a:focus-visible, .gp-brand:focus-visible,
.gp-footer-col a:focus-visible, .gp-footer-logo:focus-visible { outline-color: var(--gp-navy); }

.gp-sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.gp-skip {
    position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
    z-index: 2000; background: var(--gp-navy); color: #fff;
    padding: 10px 20px; border-radius: 0 0 10px 10px;
    font-family: var(--gp-font); font-weight: 700; text-decoration: none;
    transition: top 0.18s ease;
}
.gp-skip:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* ── Global modern-polish layer (lifts every page that loads this) ──────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }

::selection { background: var(--gp-navy); color: var(--gp-bg); }

/* Thin, modern scrollbar — warm */
* { scrollbar-width: thin; scrollbar-color: var(--gp-on-dark) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--gp-on-dark); border-radius: 8px;
    border: 3px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: #A39C8C; background-clip: content-box; }

/* Button press feedback */
.gp-btn:active, .gp-btn-nav:active { transform: translateY(0) scale(0.97); }
.gp-btn-nav { transition: background 0.15s, transform 0.12s; }

/* Entrance animation — pure CSS, runs once on load. Always ends fully visible
   (animation-fill 'both' → opacity:1), so it can NEVER leave content hidden,
   even with no JS. prefers-reduced-motion (below) collapses it to an instant show. */
.gp-reveal { animation: gpFadeUp 0.7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes gpFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Form controls — soft green focus halo site-wide */
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):focus,
select:focus, textarea:focus {
    border-color: var(--gp-blue) !important;
    box-shadow: 0 0 0 3px rgba(var(--gp-primary-rgb), 0.16);
}
input:not([type=range]):not([type=checkbox]):not([type=radio]),
select, textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease; }

/* Reusable card-hover lift (opt-in via .gp-lift) */
.gp-lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.gp-lift:hover { transform: translateY(-4px); box-shadow: var(--gp-shadow-lg); }

/* Honor the OS "reduce motion" setting. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
