/* ============================================================
   JOSEPH ZEIDAN | PORTFOLIO
   Calm, confident design system — soft surfaces, quiet blue
   accent, no heavy borders or hard drop shadows.
   ============================================================ */

:root {
    /* Color */
    --bg:          #FAFBFD;
    --bg-raised:   #F1F4F9;
    --ink:         #171B24;
    --muted:       #626A78;
    --muted-soft:  #99A1AE;
    --line:        #E3E7EE;
    --accent:      #3D72D6;
    --accent-dark: #2C56AE;
    --accent-tint: #E9F0FD;
    --green:       #1B7A43;
    --green-tint:  #E4F5E9;
    --white:       #FFFFFF;

    /* Type */
    --f-display: 'Archivo', system-ui, -apple-system, sans-serif;
    --f-body:    'Work Sans', system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2.5rem;
    --sp-5: 4rem;
    --sp-6: 6.5rem;

    --container: 1120px;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(23, 27, 36, 0.06), 0 1px 1px rgba(23, 27, 36, 0.04);
    --shadow: 0 8px 24px rgba(23, 27, 36, 0.08), 0 2px 6px rgba(23, 27, 36, 0.05);
    --shadow-hover: 0 14px 32px rgba(23, 27, 36, 0.1), 0 4px 10px rgba(23, 27, 36, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { font-size: 1.0625rem; color: var(--ink); }

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ── Eyebrow / tag chips ─────────────────────────────────────── */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--f-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: var(--sp-2);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 251, 253, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-3);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-mark {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    border: 1.5px solid var(--line);
    padding: 6px 11px;
    border-radius: 8px;
    transition: border-color 0.15s ease, color 0.15s ease;
    display: inline-block;
}

.nav-mark:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: var(--sp-4);
}

.nav-menu a {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--muted);
    padding: 6px 2px;
    position: relative;
    transition: color 0.15s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active { color: var(--ink); }

.nav-menu a:hover::after,
.nav-menu a.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 150;
        display: flex;
        align-items: flex-start;
        padding: var(--sp-4) var(--sp-3);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open { transform: translateX(0); }

    .nav-menu ul {
        flex-direction: column;
        gap: var(--sp-3);
        width: 100%;
    }

    .nav-menu a { font-size: 1.05rem; display: block; }
}

/* ============================================================
   PAGE HEADER (used on interior pages)
   ============================================================ */

.page-header {
    padding: var(--sp-5) 0 var(--sp-4);
    border-bottom: 1px solid var(--line);
}

.page-header p.lede {
    max-width: 640px;
    color: var(--muted);
    margin-top: var(--sp-2);
    font-size: 1.0625rem;
}

section.block {
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--line);
}

section.block:last-of-type { border-bottom: none; }

/* ============================================================
   HERO (home page)
   ============================================================ */

.hero {
    padding: var(--sp-6) 0 var(--sp-5);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-5);
}

.hero-status {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.hero-status .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.hero h1 { max-width: 820px; }

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.1875rem;
    margin-top: var(--sp-3);
}

.hero-actions {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    flex-wrap: wrap;
}

.hero-actions-spaced { margin-top: var(--sp-4); }

.hero-meta {
    margin-top: var(--sp-5);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    padding-top: var(--sp-3);
}

.hero-meta .stat {
    padding-right: var(--sp-2);
}

.hero-meta .stat .num {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink);
    display: block;
}

.hero-meta .stat .label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 2px;
    display: block;
}

@media (max-width: 700px) {
    .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-3); }
}

/* ── Home: page preview links ── */

.page-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.page-link-card {
    background: var(--white);
    padding: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    display: block;
}

.page-link-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.page-link-card h3 {
    margin: 0 0 0.4rem;
}

.page-link-card p {
    font-size: 0.9375rem;
    color: var(--muted);
}

.page-link-card .go {
    display: inline-block;
    margin-top: var(--sp-2);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent-dark);
}

@media (max-width: 760px) {
    .page-links { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    border-color: var(--line);
    color: var(--ink);
    background: var(--white);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--sp-5);
    align-items: start;
}

.about-grid p + p { margin-top: var(--sp-2); }

.about-facts {
    display: grid;
    gap: var(--sp-2);
}

.fact {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: var(--sp-2) var(--sp-3);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.fact .k { font-family: var(--f-body); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.fact .v { font-family: var(--f-display); font-weight: 700; }

@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

.skills-list .skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-1);
    border-bottom: 1px solid var(--line);
}

.skills-list .skill-row:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.skills-list .skill-row:nth-child(even) { padding-left: var(--sp-3); }

.skill-row .name { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; }
.skill-row .tag {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--accent-dark);
    background: var(--accent-tint);
    padding: 0.2em 0.7em;
    border-radius: 100px;
}

@media (max-width: 700px) {
    .skills-list { grid-template-columns: 1fr; }
    .skills-list .skill-row:nth-child(odd) { border-right: none; padding-left: 0; }
    .skills-list .skill-row:nth-child(even) { padding-left: 0; }
}

/* ============================================================
   CERTS
   ============================================================ */

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

.cert-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-4);
    position: relative;
}

.cert-card .badge {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 100px;
}

.cert-card .badge.earned {
    color: var(--green);
    background: var(--green-tint);
}

.cert-card .badge.progress {
    color: var(--accent-dark);
    background: var(--accent-tint);
}

.cert-card h3 { margin-top: var(--sp-2); font-size: 1.375rem; }

.cert-card .org {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.cert-card p.desc {
    margin-top: var(--sp-2);
    color: var(--muted);
    font-size: 0.9375rem;
}

@media (max-width: 700px) {
    .certs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */

.achievement-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-4);
}

.achievement-card .org-line {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: var(--sp-1);
}

.achievement-card h3 { font-size: 1.5rem; margin-bottom: var(--sp-2); }

.achievement-card p { color: var(--muted); max-width: 640px; }

.achievement-card .tag-line {
    margin-top: var(--sp-3);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent-dark);
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.project-thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb .ph-label {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-body h3 { font-size: 1.25rem; }

.project-body .meta {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--accent-dark);
    margin-top: 0.35rem;
}

.project-body p.desc {
    margin-top: var(--sp-2);
    color: var(--muted);
    font-size: 0.9375rem;
    flex: 1;
}

.project-body .btn { margin-top: var(--sp-3); align-self: flex-start; }

@media (max-width: 760px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-hero p.lede { font-size: 1.1875rem; }

.contact-links {
    margin-top: var(--sp-4);
    display: grid;
    gap: var(--sp-2);
}

.contact-link-row {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-link-row:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.contact-link-row .k {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link-row .v {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.contact-link-row .arrow {
    font-family: var(--f-body);
    font-weight: 600;
    color: var(--accent-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: var(--sp-4) 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-1);
}

.footer-name {
    font-family: var(--f-display);
    font-weight: 700;
}

.footer-meta {
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--muted);
}