@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #0f172a;
    --muted: #475569;
    --ocean: #0b5c62;
    --ocean-dark: #083f43;
    --sand: #f5efe6;
    --coral: #ff7a59;
    --lime: #c7f5d9;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    background: var(--sand);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

.mwp-nav {
    background: rgba(245, 239, 230, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggler {
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(15, 23, 42, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 1.25em 1.25em;
}

.brand-mark {
    background: var(--ocean);
    color: var(--white);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 12px;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}

.nav-link {
    color: var(--ink) !important;
    font-weight: 500;
    margin-left: 16px;
}

.nav-link:hover {
    color: var(--ocean) !important;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(199, 245, 217, 0.6), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 89, 0.4), transparent 45%),
        linear-gradient(120deg, var(--ocean) 0%, var(--ocean-dark) 60%, #051f23 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-copy .eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    margin-bottom: 20px;
}

.hero-copy .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 30px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.meta-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.hero-card {
    position: relative;
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.6), transparent 60%);
    filter: blur(40px);
    z-index: 0;
}

.hero-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.hero-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-list li::before {
    content: "•";
    margin-right: 8px;
    color: var(--coral);
}

.page-hero {
    padding: 90px 0 50px;
    background: linear-gradient(120deg, rgba(11, 92, 98, 0.12), rgba(255, 122, 89, 0.12));
}

.page-hero .eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--ocean);
    margin-bottom: 12px;
    display: inline-block;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.page-hero .lead {
    max-width: 640px;
    color: var(--muted);
}

.breadcrumbs {
    background: #efe7dd;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

/* Admin */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f3f4f6;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0b1117 0%, #111827 100%);
    color: #e2e8f0;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.admin-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-subtitle {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-link {
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-weight: 500;
}

.admin-link:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.admin-footer {
    margin-top: auto;
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
}

.admin-logout {
    color: #fda4af;
    font-weight: 600;
}

.admin-main {
    padding: 36px 40px 48px;
    background: radial-gradient(circle at top, #ffffff 0%, #f3f4f6 45%);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.admin-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.admin-heading {
    margin: 0;
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.admin-alert {
    border-radius: 14px;
    padding: 12px 16px;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 28px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-card-highlight {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}

.admin-card-kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.admin-card-value {
    font-size: 2.4rem;
    font-weight: 600;
    margin-top: 8px;
}

.admin-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.admin-section {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-link-inline {
    color: #2563eb;
    font-weight: 600;
}

.admin-table {
    display: grid;
    gap: 8px;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    align-items: center;
}

.admin-table-head {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
    background: #f1f5f9;
}

.admin-table-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: inherit;
}

.admin-table-row:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.admin-table-static:hover {
    box-shadow: none;
    border-color: #e2e8f0;
}

.admin-table-empty {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.admin-table-actions {
    grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr 1.2fr;
}

.admin-actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-actions-inline form {
    margin: 0;
}

.admin-chip {
    background: #e0f2fe;
    color: #0369a1;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.admin-detail-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #64748b;
    margin-bottom: 18px;
}

.admin-detail-message {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.admin-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    max-width: 520px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-filter {
    display: grid;
    grid-template-columns: 1.6fr 0.6fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, #e0f2fe 0%, #f8fafc 50%, #e2e8f0 100%);
    padding: 24px;
}

.admin-auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: min(420px, 92vw);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.admin-auth-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-auth-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.admin-auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.admin-auth-footer {
    margin-top: 16px;
    text-align: center;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .admin-nav {
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .admin-main {
        padding: 24px;
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: 1fr;
    }

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

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

.breadcrumbs li::after {
    content: "/";
    margin-left: 8px;
    color: rgba(15, 23, 42, 0.4);
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: var(--ocean);
    font-weight: 500;
}

.breadcrumbs .current {
    color: var(--muted);
}

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

.pill {
    background: var(--lime);
    color: var(--ocean-dark);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.section {
    padding: 90px 0;
}

.section-muted {
    background: #f0e9de;
}

.section-dark {
    background: #0b2d31;
    color: var(--white);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.section-head p {
    max-width: 640px;
    color: var(--muted);
}

.section-head.light p {
    color: rgba(255, 255, 255, 0.75);
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ocean);
    margin-bottom: 12px;
    font-weight: 600;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.system-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-soft);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.process-step {
    background: var(--white);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.step-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coral);
}

.work-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
}

.work-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
}

.about-card {
    background: var(--white);
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.about-card ul {
    padding-left: 18px;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: center;
}

.contact-card {
    background: var(--white);
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 18px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-field ul {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
}

.flash-success {
    background: #dcfce7;
    color: #14532d;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.contact-value {
    font-weight: 600;
}

.mwp-footer {
    background: #071b1f;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    align-items: start;
}

.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 24px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-cookie-settings {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-cookie-settings:hover {
    color: #ffffff;
}

.legal-content {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.cookie-banner {
    position: fixed;
    inset: auto 24px 24px 24px;
    background: #0b1117;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    z-index: 1050;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.cookie-banner-content {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-title {
    font-weight: 600;
    margin: 0 0 6px;
}

.cookie-text {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.cookie-text a {
    color: #38bdf8;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.btn {
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(255, 122, 89, 0.3);
}

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

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.reveal {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.2s; }
.reveal.delay-2 { animation-delay: 0.4s; }
.reveal.delay-3 { animation-delay: 0.6s; }
.reveal.delay-4 { animation-delay: 0.8s; }

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

@media (max-width: 992px) {
    .nav-link { margin-left: 8px; }
    .hero { padding-top: 100px; }
}

@media (max-width: 768px) {
    .navbar-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-panel { padding: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .cookie-banner {
        inset: auto 12px 12px 12px;
    }
}
