/* =================================================================
   style.css — McKechney / Blue Sky Dev
   Component & layout styles  (requires site.css tokens loaded first)
   ================================================================= */

/* ── Base ─────────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: 300;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    transition: color var(--transition);
}
a:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

p, ul, ol {
    margin-bottom: 1.5em;
    font-size: 16px;
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0 0 1.25rem 0;
}

/* ── Page wrapper ─────────────────────────────────────────────── */
#fh5co-wrapper { overflow-x: hidden; position: relative; }
#fh5co-page    { position: relative; }

/* ── Navbar ───────────────────────────────────────────────────── */
#fh5co-header-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#fh5co-navbar {
    padding: 1.25rem 0;
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#fh5co-navbar.scrolled {
    background: rgba(13, 15, 20, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

#fh5co-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--transition);
}
#fh5co-navbar .navbar-brand:hover { color: var(--color-accent); }

#fh5co-navbar .nav-link {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    transition: color var(--transition);
}
#fh5co-navbar .nav-link:hover,
#fh5co-navbar .nav-link:focus { color: var(--color-white); }

#fh5co-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.2);
    padding: 0.35rem 0.65rem;
}
#fh5co-navbar .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%28255%2C255%2C255%2C0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    #fh5co-navbar { background: rgba(13,15,20,0.97); }
    #fh5co-navbar .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid var(--color-border);
        margin-top: 0.75rem;
    }
}

/* ── Hero / Cover ─────────────────────────────────────────────── */
.fh5co-hero,
.fh5co-cover {
    position: relative;
    min-height: 100vh;
    background-image: url("/images/rawpixel-211022-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .fh5co-hero,
    .fh5co-cover {
        min-height: 80vh;
        background-attachment: scroll;
    }
}

.fh5co-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(13,15,20,0.9) 100%
    );
}

.fh5co-cover .desc,
.fh5co-hero  .desc {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
    padding: 0 1.5rem;
}

.fh5co-cover .desc h2 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.fh5co-cover .desc h2 strong { font-weight: 700; }

.fh5co-cover .desc span {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.fh5co-cover .btn {
    padding: 0.85em 2.5em;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.82rem;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.65) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition), border-color var(--transition);
}
.fh5co-cover .btn:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--color-white) !important;
}

/* Cover variant (inline bg-image from view) */
.fh5co-cover[style*="background-image"] {
    background-attachment: fixed;
}
@media (max-width: 768px) {
    .fh5co-cover[style*="background-image"] { background-attachment: scroll; }
}

/* ── Sub-page header (replaces fh5co-cover-2 + br spacers) ─────── */
.fh5co-cover-2,
.page-section-header {
    position: relative;
    padding: 8rem 0 3.5rem;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-surface) 100%);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.fh5co-cover-2 .desc h2,
.page-section-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin-bottom: 0.4rem;
}

.page-section-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ── Sections ─────────────────────────────────────────────────── */
.fh5co-section {
    padding: 5rem 0;
}
@media (max-width: 768px) {
    .fh5co-section { padding: 3rem 0; }
}

/* ── Project card listing ─────────────────────────────────────── */
.fh5co-listing {
    position: relative;
    width: 100%;
    padding: 4rem 0 5rem;
    background: var(--color-bg);
}

@media (min-width: 992px) {
    .fh5co-listing {
        margin-top: -5rem;
        padding-top: 1rem;
    }
}

.fh5co-listing .fh5co-item-wrap {
    padding: 0.65rem;
    margin-bottom: 0;
}

.fh5co-listing .fh5co-item-wrap .fh5co-listing-item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-decoration: none;
}
.fh5co-listing .fh5co-item-wrap .fh5co-listing-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(77,171,247,0.3);
}

.fh5co-listing .fh5co-item-wrap .fh5co-listing-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.8) saturate(0.85);
}
.fh5co-listing .fh5co-item-wrap .fh5co-listing-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.65) saturate(1.1);
}

.fh5co-listing .fh5co-item-wrap .fh5co-listing-copy {
    padding: 1.2rem 1.4rem 1.4rem;
    flex: 1;
}
.fh5co-listing .fh5co-item-wrap .fh5co-listing-copy h2 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.fh5co-listing .fh5co-item-wrap .fh5co-listing-item:hover .fh5co-listing-copy h2 {
    color: var(--color-accent);
}
.fh5co-listing .fh5co-item-wrap .fh5co-listing-copy p,
.fh5co-listing .fh5co-item-wrap .fh5co-listing-copy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Bootstrap 5 card — dark theme ───────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
}
.card-header {
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem 1.5rem;
}
.card-body {
    padding: 1.5rem;
    color: var(--color-text);
}
.card-body p,
.card-body ul,
.card-body ol { color: var(--color-text); }
.card-body li  { margin-bottom: 0.4rem; }

/* Subtle info/link strip above a card */
.card-info-link {
    background: rgba(77,171,247,0.07);
    border: 1px solid rgba(77,171,247,0.18);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}
.card-info-link a { color: var(--color-accent); font-weight: 500; }

/* Page content area for detail pages */
.page-content { padding: 3rem 0 5rem; }

/* ── Images ───────────────────────────────────────────────────── */
.img-fluid,
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0.75rem 0;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.btn-primary {
    background: var(--color-accent-dark) !important;
    border-color: var(--color-accent-dark) !important;
    color: var(--color-white) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(77,171,247,0.35) !important;
}

/* ── Footer ───────────────────────────────────────────────────── */
#fh5co-footer {
    padding: 3.5rem 0 2.5rem;
    background: #080a0f;
    border-top: 1px solid var(--color-border);
}
#fh5co-footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    margin-bottom: 0;
}
#fh5co-footer a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
#fh5co-footer a:hover { color: var(--color-white); }

/* ── Contact form ─────────────────────────────────────────────── */
#fh5co-contact .form-control {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition);
}
#fh5co-contact .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(77,171,247,0.2);
    background: var(--color-surface);
    color: var(--color-text);
}
#fh5co-contact .form-control::placeholder { color: var(--color-text-muted); }
#fh5co-contact .form-group { margin-bottom: 1.5rem; }

/* ── Section heading ──────────────────────────────────────────── */
.heading-section {
    padding-bottom: 1em;
    margin-bottom: 3em;
    position: relative;
    text-align: center;
}
.heading-section::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 50%;
    width: 60px;
    margin-left: -30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}
.heading-section h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--color-white);
}

/* ── Scroll animations ────────────────────────────────────────── */
.animate-box {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-box.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utilities ────────────────────────────────────────────────── */
.mb20 { margin-bottom: 1.25rem; }
.text-accent { color: var(--color-accent) !important; }
.lead { line-height: 1.8; }

/* Spacing helpers */
.row-bottom-padded-lg  { padding-bottom: 5rem; }
.row-top-padded-lg     { padding-top: 5rem; }
.row-bottom-padded-md  { padding-bottom: 3rem; }
.row-top-padded-md     { padding-top: 3rem; }
.row-bottom-padded-sm  { padding-bottom: 1.5rem; }
.row-top-padded-sm     { padding-top: 1.5rem; }

@media (max-width: 768px) {
    .row-bottom-padded-lg,
    .row-top-padded-lg  { padding-bottom: 2rem; padding-top: 2rem; }
}