/* public/css/layout.css */

/* ============================================
   HEADER
   ============================================ */
.ffyh-layout-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.25s ease;
}
.ffyh-layout-header.scrolled {
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
}
.ffyh-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ffyh-logo-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 48px;
    transition: transform 0.2s ease;
}
.ffyh-logo-side:hover { transform: scale(1.03); }
.ffyh-logo-side img { height: 100%; width: auto; object-fit: contain; }

.ffyh-nav { flex: 1; display: flex; justify-content: center; }
.ffyh-nav-list {
    display: flex; align-items: center; gap: 0.5rem;
    list-style: none; margin: 0; padding: 0;
}
.ffyh-nav-list a {
    display: inline-block; padding: 0.5rem 0.9rem;
    font-size: 14px; font-weight: 500; color: #374151;
    text-decoration: none; border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.ffyh-nav-list a:hover { color: #185fa5; background: #f0f6fc; }
.ffyh-nav-list a.active { color: #185fa5; background: #e6f1fb; font-weight: 600; }

.ffyh-burger {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; color: #1a3a5c;
}
.ffyh-mobile-menu {
    display: none; background: #ffffff;
    border-top: 1px solid #e5e7eb; padding: 1rem 1.5rem;
}
.ffyh-mobile-menu.open { display: block; }
.ffyh-mobile-menu a {
    display: block; padding: 0.75rem 0; font-size: 15px;
    font-weight: 500; color: #374151; text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.ffyh-mobile-menu a:last-child { border-bottom: none; }
.ffyh-mobile-menu a:hover { color: #185fa5; }

@media (max-width: 900px) {
    .ffyh-nav { display: none; }
    .ffyh-burger { display: block; }
    .ffyh-logo-side { height: 40px; }
}

/* ============================================
   FOOTER
   ============================================ */
.ffyh-layout-footer {
    background: #1a3a5c; color: #ffffff; margin-top: 4rem;
}
.ffyh-footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem;
}
@media (max-width: 1100px) {
    .ffyh-footer-inner {
        grid-template-columns: 1fr 1fr; gap: 2rem;
    }
}
@media (max-width: 900px) {
    .ffyh-footer-inner {
        grid-template-columns: 1fr; gap: 2rem;
        padding: 2.5rem 1.5rem 1.5rem;
    }
}
.ffyh-footer-col h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem;
    color: #ffffff; position: relative; padding-bottom: 0.75rem;
}
.ffyh-footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 32px; height: 2px; background: #7ab3e0;
}
.ffyh-footer-col p, .ffyh-footer-col li {
    font-size: 14px; line-height: 1.7; color: #a8c8e8;
}
.ffyh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ffyh-footer-col ul li { margin-bottom: 0.6rem; }
.ffyh-footer-col a {
    color: #a8c8e8; text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}
.ffyh-footer-col a:hover { color: #ffffff; padding-left: 4px; }

.ffyh-footer-logo {
    height: 56px; width: auto; margin-bottom: 1rem;
    filter: brightness(0) invert(1); opacity: 0.95;
}
.ffyh-footer-desc {
    font-size: 14px; color: #a8c8e8;
    line-height: 1.7; max-width: 320px;
}
.ffyh-contact-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-bottom: 1rem; font-size: 14px; color: #a8c8e8;
}
.ffyh-contact-item svg {
    width: 18px; height: 18px; color: #7ab3e0;
    flex-shrink: 0; margin-top: 2px;
}
.ffyh-contact-item a { color: #a8c8e8; }
.ffyh-contact-item a:hover { color: #ffffff; }

.ffyh-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.ffyh-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ffyh-social a:hover { background: #185fa5; transform: translateY(-2px); }
.ffyh-social svg { width: 18px; height: 18px; color: #ffffff; }

.ffyh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem; text-align: center;
    font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ============================================
   MODAL
   ============================================ */
.ffyh-modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 1rem;
}
.ffyh-modal-overlay.open { display: flex; }
.ffyh-modal-content {
    background: #ffffff; border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.ffyh-modal-header {
    padding: 1.5rem; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0;
}
.ffyh-modal-header h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem; font-weight: 600; color: #1a202c; margin: 0;
}
.ffyh-modal-close {
    background: none; border: none; cursor: pointer;
    color: #9ca3af; padding: 4px;
}
.ffyh-modal-close:hover { color: #4b5563; }
.ffyh-modal-body { padding: 1.5rem; color: #4b5563; line-height: 1.7; }
.ffyh-modal-body p { margin-bottom: 1rem; }
.ffyh-modal-logos {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb;
}
.ffyh-modal-logos img {
    height: 56px; width: auto; object-fit: contain;
    border-radius: 8px; border: 1px solid #e5e7eb; padding: 4px; background: #fff;
}
.ffyh-modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end;
}
.ffyh-btn-primary {
    background: #1a3a5c; color: #fff; border: none;
    border-radius: 9999px; padding: 0.5rem 1.25rem;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: background 0.15s;
}
.ffyh-btn-primary:hover { background: #0f2740; }
