/* ============================================================
   PostaCon – Site Stylesheet
   Design: Scandinavian precision, dark ink, teal accent
   ============================================================ */

/* --- Variables --- */
:root {
    --ink:       #0F1923;
    --ink-mid:   #2A3A4A;
    --ink-soft:  #5A6A7A;
    --paper:     #F7F5F0;
    --white:     #FFFFFF;
    --teal:      #00B4A0;
    --teal-dark: #008C7A;
    --teal-glow: rgba(0, 180, 160, 0.15);
    --gold:      #C8A44A;
    --border:    rgba(15,25,35,.10);
    --shadow-sm: 0 2px 12px rgba(15,25,35,.08);
    --shadow-md: 0 8px 32px rgba(15,25,35,.12);
    --shadow-lg: 0 20px 60px rgba(15,25,35,.18);
    --radius:    10px;
    --font-head: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --nav-h:     72px;
    --max-w:     1160px;
    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

/* --- Reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .18s; }
.reveal:nth-child(4) { transition-delay: .26s; }
.service-card.reveal:nth-child(2) { transition-delay: .12s; }
.service-card.reveal:nth-child(3) { transition-delay: .24s; }

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: transparent;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -.01em;
    color: var(--ink);
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--ink);
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: 0;
    flex-shrink: 0;
}
.logo-text { font-weight: 600; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links li a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-mid);
    letter-spacing: .02em;
    transition: color .2s;
}
.nav-links li a:hover { color: var(--teal); }
.nav-cta {
    background: var(--ink) !important;
    color: var(--white) !important;
    padding: .5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; transform: translateY(-1px); }
.nav-toggle { display: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s var(--ease);
    text-decoration: none;
}
.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--teal-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* --- Section layout --- */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem 2rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: .75rem;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 400;
}
.section-intro {
    margin-top: 1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
    gap: 4rem;
    overflow: hidden;
}
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 80%);
}
.hero-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.hero-title em {
    font-style: italic;
    color: var(--teal);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero locker illustration */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.locker-illustration {
    position: relative;
    width: 100%;
    max-width: 360px;
}
.locker-bank {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.locker-cell {
    aspect-ratio: 1.4;
    background: var(--paper);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.locker-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,.5));
}
.locker-cell.active {
    border-color: var(--teal);
    background: var(--teal-glow);
    animation: pulse-locker 2.5s ease-in-out infinite;
}
.locker-cell:nth-child(3) { animation-delay: 0s; }
.locker-cell:nth-child(6) { animation-delay: 1.2s; }
@keyframes pulse-locker {
    0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}
.locker-icon {
    font-size: 1.8rem;
    color: var(--border);
    line-height: 1;
}
.locker-cell.active .locker-icon { color: var(--teal); }

/* Animate locker cells in sequence on load */
.l1 { animation-delay: .05s; }
.l2 { animation-delay: .1s; }
.l4 { animation-delay: .15s; }
.l5 { animation-delay: .2s; }

/* --- Services --- */
.services { background: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--paper);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    position: relative;
    transition: box-shadow .3s, transform .3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 48px; height: 48px;
    color: var(--teal);
    margin-bottom: 1.25rem;
}
.service-number {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 2.5rem;
    font-family: var(--font-head);
    color: var(--border);
    line-height: 1;
    font-weight: 400;
}
.service-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.service-desc {
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.service-features {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.75rem;
}
.service-features li {
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-mid);
    padding-left: 1rem;
    position: relative;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--teal);
    transform: translateY(-50%);
}

/* --- Service card image --- */
.service-img-wrap {
    margin-top: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.service-card:hover .service-img {
    transform: scale(1.04);
}

/* --- Solutions page --- */
.solutions-hero {
    background: var(--white);
    padding-top: var(--nav-h);
    border-bottom: 1px solid var(--border);
}
.solutions-hero .section-inner {
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.services-page {
    background: var(--paper);
}
.solutions-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

/* --- About --- */
.about { background: var(--ink); color: var(--white); }
.about .section-label { color: var(--teal); }
.about .section-title { color: var(--white); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-text p {
    color: rgba(255,255,255,.7);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.75;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text .btn-primary { margin-top: 1rem; }
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.stat-block {
    padding: 1.75rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: border-color .3s, background .3s;
}
.stat-block:hover {
    border-color: var(--teal);
    background: rgba(0,180,160,.08);
}
.stat-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--teal);
    line-height: 1;
    min-width: 80px;
}
.stat-label {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
}

/* --- Contact --- */
.contact { background: var(--paper); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}
.contact-info, .contact-person {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s, transform .3s;
}
.contact-info:hover, .contact-person:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.contact-block-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
}
.contact-info address p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: .75rem;
}
.contact-info address a {
    color: var(--teal);
    font-weight: 500;
    transition: color .2s;
}
.contact-info address a:hover { color: var(--teal-dark); }
.contact-person {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.person-avatar {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .05em;
    margin-bottom: .5rem;
    flex-shrink: 0;
}
.person-info { display: flex; flex-direction: column; gap: .25rem; }
.person-info strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}
.person-role {
    font-size: .8rem;
    font-weight: 500;
    color: var(--teal);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.person-info a {
    font-size: .88rem;
    color: var(--ink-soft);
    transition: color .2s;
}
.person-info a:hover { color: var(--teal); }

/* --- Footer --- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.5);
    text-align: center;
    padding: 3rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .75rem;
}
.site-footer .logo-mark { background: rgba(255,255,255,.12); }
.site-footer .logo-text { color: rgba(255,255,255,.7); font-weight: 600; }
.footer-tagline {
    font-size: .9rem;
    margin-bottom: .5rem;
    color: rgba(255,255,255,.4);
}
.footer-legal { font-size: .8rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3rem; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    :root { --nav-h: 62px; }
    .nav-links {
        display: none;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        background: rgba(247, 245, 240, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { font-size: 1.2rem; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: .5rem;
    }
    .nav-toggle span {
        display: block;
        width: 24px; height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: .3s;
    }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.6rem; }
    .section-inner { padding: 4rem 1.5rem; }
    .service-img { height: 180px; }
    .solutions-cta { flex-direction: column; align-items: center; }
}
