﻿/* ============================================
   GLOBAL RESET
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.site-body {
    margin: 0;
    padding: 0;
    padding-bottom: 0px;
    background: var(--color-public-body-bg);
    color: var(--public-text);
    font-family: var(--site-font);
    font-size: 16px;
    line-height: 1.2;
}

/* MAIN CONTENT WRAPPER */
.public-wrapper {
    margin: 0;
    padding: 0;
    padding-bottom: 126px; /* respect the footer */
}

.public-main {
    margin: 0 auto;
    margin-left: 260px; /* sidebar width */
    padding: 10px 20px 80px 40px; /* top, right, bottom, left */
}

    /* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */

    .public-main h1,
    .public-main h2,
    .public-main h3,
    .public-main h4,
    .public-main h5,
    .public-main h6 {
        font-family: var(--site-font);
    }

    .public-main p {
        font-size: 18px;
        line-height: 1.2;
        color: var(--public-text);
        margin: 0 0 8px;
    }

    .public-main h1 {
        font-size: 36px;
        margin-bottom: 4px;
        margin-top: 5px;
        font-weight: 700;
    }

    .public-main h2 {
        font-size: 28px;
        margin-top: 10px;
        margin-bottom: 16px;
        font-weight: 600;
    }

    .public-main h3 {
        font-size: 22px;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .public-main ul {
        padding-left: 20px;
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.7;
        color: var(--public-text-muted);
    }

    .public-main li {
        margin-bottom: 6px;
    }

    .public-main a {
        color: var(--color-accent);
        text-decoration: none;
    }

        .public-main a:hover {
            color: var(--color-accent-light);
        }

/* ============================================
   GLOBAL SOCIAL ICON STYLE
   ============================================ */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    opacity: 0.85;
    color: var(--brand-primary);
    text-decoration: none;
}

    .social-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
        stroke: currentColor;
    }

    .social-icon:hover {
        opacity: 1;
    }

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.site-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
}

.site-nav a {
    color: var(--public-text);
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .site-nav a:hover {
        color: var(--public-text-special);
    }
/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin: 4px 0 18px 0;
}

    .breadcrumbs a,
    .breadcrumbs span {
        color: var(--public-link);
    }
        .breadcrumbs a:hover {
            color: var(--public-hover);
        }

        /* Insert ">" after every breadcrumb except the last */
        .breadcrumbs a::after {
            content: ">";
            margin-left: 6px;
            color: var(--public-link);
        }

        /* Last item gets no separator */
        .breadcrumbs span:last-child::after {
            content: "";
        }

        /* Active breadcrumb (last item) */
        .breadcrumbs span:last-child {
            color: var(--public-active);
            font-weight: 600;
        }

/* ============================================
   HERO
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--public-text-muted);
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--public-text-inverse);
    box-shadow: var(--shadow-2);
}

    .btn-primary:hover {
        background: var(--brand-secondary);
        transform: translateY(-1px);
    }

.btn-secondary {
    background: var(--card-bg-alt);
    color: var(--public-text);
}

    .btn-secondary:hover {
        background: var(--card-hover-bg);
    }

/* ============================================
   SECTIONS / CARDS
   ============================================ */

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 18px;
    box-shadow: var(--shadow-1);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

    .card:hover {
        background: var(--card-hover-bg);
        transform: translateY(-2px);
        box-shadow: var(--shadow-2);
    }

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--public-text-muted);
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

.portfolio-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-body {
    padding: 14px 16px 16px;
}

.portfolio-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.portfolio-meta {
    font-size: 12px;
    color: var(--public-text-muted);
    margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    background: var(--public-footer-bg);
    border-top: 1px solid var(--public-footer-border);
    padding: 0;
    margin: 0;
    z-index: 9999;
}

.site-footer-inner {
    margin: 0;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--public-footer-text);
}

.site-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    flex: 0 1 auto;
    min-width: 0;
}

.site-footer-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
}

.site-footer-text {
    font-size: 16px;
    line-height: 1.3;
    max-width: 350px;
    white-space: normal;
}

.site-footer-center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
}

.site-footer-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--public-footer-text-strong);
}

.site-footer-tagline {
    font-size: 16px;
    margin-top: 4px;
}

.site-footer-contact {
    margin-top: 6px;
    font-size: 16px;
}

.site-footer a {
    color: var(--public-footer-link);
    text-decoration: none;
}

    .site-footer a:hover {
        color: var(--public-footer-link-hover);
    }

.site-footer-right {
    display: flex;
    margin-right: 10px;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    height: 100%;
    flex: 0 0 auto;
    min-width: 0;
}

    .site-footer-right svg,
    .site-footer-icon {
        width: 40px;
        height: 40px;
        opacity: 0.85;
        fill: var(--brand-primary);
        stroke: var(--brand-primary);
    }

.site-footer-copyright {
    margin-top: 5px;
    color: var(--public-text-muted);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) and (min-width: 900px) {
    .site-footer-right {
        flex-wrap: wrap;
        max-width: 260px;
        align-content: center;
    }
}

@media (max-width: 1150px) {
    .site-footer,
    .site-footer * {
        font-size: 0.95rem;
    }
}

@media (max-width: 1100px) {

    .public-main {
        margin-left: 0;
        padding-left: 30px;
        padding-right: 20px;
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .site-footer {
        height: auto;
        position: static;
        padding: 20px 0;
    }

    .site-footer-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        height: auto;
        padding: 0 20px;
        text-align: center;
    }

    .site-footer-left,
    .site-footer-center,
    .site-footer-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .site-footer-right {
        flex-wrap: wrap;
    }

    .site-footer-logo {
        height: 80px;
    }
}

/* ============================================================
   GLOBAL MOBILE MENU BEHAVIOR
   ============================================================ */

@media (max-width: 1100px) {

    /* MOBILE MENU BUTTON */
    .public-menu-toggle {
        position: fixed;
        top: 6px;
        right: 12px;
        z-index: 500;
        background: var(--public-nav-bg);
        border: 2px solid var(--public-nav-border);
        border-radius: 10px;
        padding: 8px 12px;
        cursor: pointer;
        color: var(--public-nav-text);
        font-size: 15px;
        font-weight: 700;
        box-shadow: var(--shadow-1);
    }

        .public-menu-toggle.menu-open {
            background: var(--public-nav-hover-bg);
            color: var(--public-nav-hover-text);
            border-color: var(--public-nav-hover-text);
            opacity: 0.7;
            transform: scale(0.95);
        }

    /* MOBILE TOP NAV — LEFT PADDING */
    header .site-nav.mobile-panel > a,
    header .site-nav.mobile-panel .nav-dropdown > span {
        padding-left: 24px;
    }
}