/* =====================================================================
   martialarts.roberteckhardt.com — 2026
   CSS matches the Figma `Martial Arts_20260914` (SOURCE OF TRUTH) —
   node-id=0-1. Brand base mirrored from the main roberteckhardt.com 2026
   site (Eureka fonts, palette, card/photo styling). NO PDF, NO video —
   the hero is a static small masthead per the current Figma.

   Type/color specs extracted from the Figma JSON:
     hero title 36px EurekaSansScComp-Light #3D3835 · subline 20px Light #7F776F
     module kanji 24px Bold #DA6526 · module name 36px Bold #7F776F
     narrative 28px EurekaSansComp-Medium #2C2926 · captions 20px Bold #9F4A1D
     nav 16px EurekaSansScComp-Medium #7F776F
     framed photo: off-white #F3F2F1 card + inset/drop shadow (#2C2926)
   ===================================================================== */

/* ---- Eureka web fonts (woff2), identical to the main site ---- */
@font-face{
    font-family: 'EurekaSansScComp-Light';
    src: url('FONTS/EurekaSansScComp-Light.woff2') format('woff2');
    font-style: normal; font-weight: 300; font-display: swap;
}
@font-face{
    font-family: 'EurekaSansScComp-Medium';
    src: url('FONTS/EurekaSansScComp-Medium.woff2') format('woff2');
    font-style: normal; font-weight: 500; font-display: swap;
}
@font-face{
    font-family: 'EurekaSansScComp-Bold';
    src: url('FONTS/EurekaSansScComp-Bold.woff2') format('woff2');
    font-style: normal; font-weight: 700; font-display: swap;
}
@font-face{
    font-family: 'EurekaSansComp';
    src: url('FONTS/EurekaSansComp.woff2') format('woff2');
    font-style: normal; font-weight: 300; font-display: swap;
}
@font-face{
    font-family: 'EurekaSansComp-Medium';
    src: url('FONTS/EurekaSansComp-Medium.woff2') format('woff2');
    font-style: normal; font-weight: 500; font-display: swap;
}
@font-face{
    font-family: 'EurekaSansComp-LightItalic';
    src: url('FONTS/EurekaSansComp-LightItalic.woff2') format('woff2');
    font-style: italic; font-weight: 300; font-display: swap;
}
@font-face{
    font-family: 'EurekaComp';
    src: url('FONTS/EurekaComp.woff2') format('woff2');
    font-style: normal; font-weight: 400; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

/* Artboard is 1024 wide; content modules are 904 centered (60px gutters) */
.portfolio-container {
    max-width: 1024px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 60px 60px;
}

/* =====================================================================
   HERO TITLE (Figma dev snippet) — "martial arts" 52px Light #3D3835.
   No image, no subline, no kanji watermark (per the updated Figma lead
   snippet). The identity mark now lives in .punch-name. Static, centered.
   ===================================================================== */
.hero-title {
    color: #3D3835;
    font-size: 52px;
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 350;
    text-align: center;
    word-wrap: break-word;
    padding-top: 20px;   /* Figma third-child div padding-top */
}

/* =====================================================================
   LEAD (Figma dev snippet) — one column wrapping identity → nav → hero.
   Matches the Figma outer div: inline-flex column, align-items:center,
   gap:10px, width:100%.
   ===================================================================== */
.lead {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* =====================================================================
   IDENTITY MASTHEAD (Figma punch_Name 236:41) — name + location, above hero.
   name: EurekaSansScComp-Light 20px UPPER #3D3835 (centered)
   loc:  EurekaSansScComp-Light 14px LOWER #7F776F
   ===================================================================== */
.punch-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px 20px;   /* Figma identity div padding-bottom/left/right 20px */
}
.punch-icon {
    width: 102px;
    height: 71px;
    display: block;
    object-fit: contain;
    /* bobu-kanji.svg already renders the inner shadow (4px/4px inset) + rounded
       bottom corners, so no CSS box-shadow is added — avoids a doubled shadow.
       Per the Figma snippet the identity mark is 102x71. */
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}
.punch-name-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.punch-name-title {
    color: #3D3835;
    font-size: 24px;
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 350;
    text-align: center;
    text-transform: uppercase;
    word-wrap: break-word;
}
.punch-name-loc {
    color: #7F776F;
    font-size: 14px;
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 350;
    text-align: left;
    text-transform: lowercase;
    word-wrap: break-word;
}

/* =====================================================================
   NAV — centered row, 16px Medium gray (Figma 1:65). Targets DEFERRED.
   ===================================================================== */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    border-top: 1px solid #F3F2F1;
    border-bottom: 1px solid #F3F2F1;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7F776F;
    font-size: 16px;
    font-family: 'EurekaSansScComp-Medium', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    text-transform: lowercase;
    text-decoration: none;
    padding: 2px 16px;
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link:focus-visible { color: #DA6526; }
.nav-link.active {
    color: #FFFFFF;
    background: #DA6426;
    border-top: 2px solid #7D3308;
    border-bottom: 2px solid #7D3308;
    cursor: default;
}
.nav-link.active:hover,
.nav-link.active:focus-visible { color: #FFFFFF; }
.nav-link.stub { cursor: default; }

/* =====================================================================
   MODULES — Aikido / Iaido (Figma 1:694 / 1:740)
   heading: kanji (24 Bold orange, full-width) then name (36 Bold gray)
   framed photo + caption · 2-col row (photo left / narrative right) ·
   3-shot action gallery. Photos owner-supplied → gray placeholders.
   ===================================================================== */
.module {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #F3F2F1;
}
.module-heading {
    margin-bottom: 28px;
}
.module-kanji {
    color: #DA6526;
    font-size: 24px;
    font-family: 'EurekaSansScComp-Bold', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}
.module-name {
    color: #7F776F;
    font-size: 36px;
    font-family: 'EurekaSansScComp-Bold', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2px;
}

/* framed video (Figma framed module videos) — full natural height, not cropped.
   Same philosophy as .photo: contain + auto height, object-fit never crops. */
.frame video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
}

/* framed photo + caption */
.frame {
    position: relative;
    background: #F3F2F1;
    padding: 12px;
    margin-bottom: 36px;
}
.frame .photo-placeholder {
    aspect-ratio: 844 / 420;   /* Figma dojo photo ~2:1 */
}
.frame-caption {
    text-align: center;
    color: #9F4A1D;
    font-size: 20px;
    font-family: 'EurekaSansScComp-Bold', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    margin-top: 12px;
}

/* placeholder photo slot (owner-supplied photos pending) */
.photo-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127,119,111,0.12);
    border-radius: 4px;
    color: rgba(127,119,111,0.9);
    font-size: 13px;
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    border: 1px dashed rgba(127,119,111,0.4);
    text-align: center;
    padding: 8px;
}

/* real photo (wired from ASSETS/GRAPHICS) — full natural height, never cropped.
   object-fit:contain + auto height shows the whole image; columns stay fixed width.
   (Removed forced aspect-ratio crop boxes that cut tall photos off vertically.) */
.photo {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* 2-col row: photo left / narrative right (Figma Frame 10) */
.row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 36px;
}
.row-photo {
    flex: 0 0 300px;          /* Figma portrait 300x450 */
}
.row-photo .photo-placeholder { aspect-ratio: 300 / 450; }
.row-copy {
    flex: 1 1 0;
}
.row-copy p {
    color: #2C2926;
    font-size: 28px;
    font-family: 'EurekaSansComp-Medium', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    line-height: 40px;
}

/* 3-shot action gallery (Figma Frame 9) */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 24px;
}
.gallery .photo-placeholder { aspect-ratio: 3 / 4; }

/* footer back-link to main site */
.site-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #F3F2F1;
    text-align: center;
}
.site-footer a {
    color: #7F776F;
    font-size: 16px;
    font-family: 'EurekaSansScComp-Light', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover { color: #DA6526; }

/* =====================================================================
   RESPONSIVE — additive, mirrors main-site approach.
   ===================================================================== */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover { color: #7F776F; }
}
.nav-link:active,
.site-footer a:active { color: #DA6526; }

@media (max-width: 768px) {
    .portfolio-container { padding: 28px 24px 48px; }
    .nav-container { flex-wrap: wrap; gap: 16px; }
    .row { flex-direction: column; gap: 24px; }
    .row-photo { flex-basis: auto; width: 100%; }
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
    body { padding: 2px; }
    .portfolio-container { padding: 24px 14px 48px; }
    .nav-link { font-size: 15px; }
    .hero-title { font-size: 32px; padding-top: 12px; }
    .module-name { font-size: 28px; }
    .row-copy p { font-size: 20px; line-height: 30px; }
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
}
