
/* =========================================================
   JAIHO LINKS
   Developed by Jaiho TechServe
   Global Design System
   ========================================================= */

/* -------------------------
   1. ROOT & DESIGN TOKENS
------------------------- */

:root {
    --background: #f8f7f3;
    --surface: #ffffff;
    --surface-soft: #f0efe9;

    --text-primary: #25251f;
    --text-secondary: #77776e;
    --text-muted: #a3a197;

    --border: #e8e6de;
    --border-strong: #d9d7ce;

    --accent: #a36f4f;
    --accent-soft: #f0e7df;

    --success: #557b61;

    --font-primary: 'DM Sans', sans-serif;
    --font-editorial: 'Playfair Display', serif;

    --container-width: 1080px;
    --content-width: 680px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;
    --radius-pill: 100px;

    --transition: 220ms ease;
    --shadow-soft: 0 8px 30px rgba(35, 34, 28, 0.035);
}


/* -------------------------
   2. RESET
------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: #e8d5c4;
    color: var(--text-primary);
}


/* -------------------------
   3. GLOBAL LAYOUT
------------------------- */

.container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );
    margin-inline: auto;
}

.content-container {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );
    margin-inline: auto;
}

.section {
    padding-block: 64px;
}

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

.section-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.6px;
}

.section-description {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 13px;
}


/* -------------------------
   4. NAVIGATION
------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(248, 247, 243, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-mark {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    background: var(--text-primary);
    color: #fff;
    border-radius: 9px;
    font-family: var(--font-editorial);
    font-size: 19px;
}

.brand-text {
    letter-spacing: -1px;
}

.brand-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* -------------------------
   5. HERO
------------------------- */

.hero {
    padding-block: 100px 76px;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.hero-title {
    margin-top: 26px;
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -4px;
}

.hero-title .editorial {
    font-family: var(--font-editorial);
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
}

.hero-description {
    max-width: 480px;
    margin: 22px auto 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}


/* -------------------------
   6. BUTTONS
------------------------- */

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text-primary);
    color: white;
}

.button-primary:hover {
    background: #414139;
}

.button-secondary {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.button-secondary:hover {
    background: var(--surface);
    border-color: var(--text-primary);
}


/* -------------------------
   7. SEARCH
------------------------- */

.search-wrapper {
    width: min(100%, 540px);
    margin: 0 auto;
}

.search-box {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding-inline: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}


/* -------------------------
   8. CATEGORY FILTERS
------------------------- */

.category-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.category-button {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all var(--transition);
}

.category-button:hover,
.category-button.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}


/* -------------------------
   9. DIRECTORY GRID
------------------------- */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 25px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.directory-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.directory-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.directory-logo {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--surface-soft);
    border-radius: 13px;
    color: var(--text-primary);
}

.directory-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-card-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.directory-card:hover .directory-card-arrow {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    transform: rotate(45deg);
}

.directory-card-content {
    margin-top: auto;
    padding-top: 25px;
}

.directory-card-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.directory-card-description {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.directory-card-meta {
    display: inline-block;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* -------------------------
   10. ENTITY PAGE HEADER
------------------------- */

.entity-header {
    padding-block: 80px 48px;
    text-align: center;
}

.entity-logo {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 23px;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-family: var(--font-editorial);
    font-size: 32px;
}

.entity-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-type {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.entity-title {
    margin-top: 12px;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.2;
}

.entity-description {
    max-width: 480px;
    margin: 15px auto 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.entity-website {
    margin-top: 22px;
}


/* -------------------------
   11. LINK LIST
------------------------- */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.link-card {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.link-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--surface-soft);
    border-radius: 11px;
    color: var(--text-primary);
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-name {
    font-size: 13px;
    font-weight: 600;
}

.link-description {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 11px;
}

.link-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.link-card:hover .link-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}


/* -------------------------
   12. PRODUCTS
------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.product-card .product-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-soft);
    border-radius: 12px;
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
}

.product-description {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}


/* -------------------------
   13. BREADCRUMBS
------------------------- */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--text-muted);
    font-size: 11px;
}

.breadcrumb a {
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--border-strong);
}


/* -------------------------
   14. EMPTY & LOADING STATES
------------------------- */

.empty-state {
    padding: 50px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-large);
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
}

.empty-state p {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 12px;
}

.loading-state {
    padding: 40px 20px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 13px;
}

.error-state {
    padding: 30px 20px;
    color: #9a554c;
    text-align: center;
    font-size: 13px;
}


/* -------------------------
   15. FOOTER
------------------------- */

.footer {
    margin-top: 75px;
    padding-block: 35px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 13px;
    font-weight: 600;
}

.footer-description {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 11px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
}


/* -------------------------
   16. SUBTLE ANIMATIONS
------------------------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 500ms ease both;
}

.animate-delay-1 {
    animation-delay: 100ms;
}

.animate-delay-2 {
    animation-delay: 200ms;
}

.animate-delay-3 {
    animation-delay: 300ms;
}


/* -------------------------
   17. RESPONSIVE
------------------------- */

@media (max-width: 768px) {

    .container,
    .content-container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    .navbar-inner {
        min-height: 66px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero {
        padding-block: 76px 55px;
    }

    .hero-title {
        letter-spacing: -2.5px;
    }

    .section {
        padding-block: 45px;
    }

    .entity-header {
        padding-block: 60px 35px;
    }

    .footer {
        margin-top: 50px;
    }
}


@media (max-width: 520px) {

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding-block: 65px 45px;
    }

    .hero-title {
        font-size: 45px;
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .directory-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .directory-card {
        min-height: 165px;
        padding: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .entity-title {
        letter-spacing: -1.5px;
    }
}


/* -------------------------
   18. ACCESSIBILITY
------------------------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
