/*
Theme Name: Fiber Cables
Theme URI: https://thefibercables.com/
Author: Huijue Group
Description: Custom WordPress theme for Huijue Group.
Version: 1.0.0
Text Domain: fibercables
*/

:root {
    --fc-blue: #0864a7;
    --fc-blue-dark: #064a80;
    --fc-blue-soft: #eef7fd;
    --fc-ink: #172333;
    --fc-muted: #657383;
    --fc-line: #dfe7ef;
    --fc-bg: #f5f8fb;
    --fc-white: #fff;
    --fc-radius: 16px;
    --fc-shadow: 0 16px 40px rgba(24, 55, 85, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--fc-ink);
    background: var(--fc-white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.fc-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.fc-section { padding: 82px 0; }
.fc-section--soft { background: var(--fc-bg); }
.fc-section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.fc-eyebrow { margin: 0 0 8px; color: var(--fc-blue); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.22; }
.fc-section-head h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 44px); }
.fc-section-head p { margin: 0; color: var(--fc-muted); }
.fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid var(--fc-blue);
    border-radius: 8px;
    color: #fff;
    background: var(--fc-blue);
    font-weight: 700;
    transition: .2s ease;
}
.fc-button:hover { border-color: var(--fc-blue-dark); background: var(--fc-blue-dark); transform: translateY(-1px); }
.fc-button--ghost { color: var(--fc-blue); background: transparent; }
.fc-button--ghost:hover { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.97); box-shadow: 0 3px 16px rgba(21,45,68,.08); backdrop-filter: blur(10px); }
.header-inner { display: flex; min-height: 82px; align-items: center; gap: 30px; }
.site-logo { flex: 0 0 auto; }
.site-logo .fc-header-brand-mark { width: 72px; max-height: 44px; object-fit: contain; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.main-nav > a, .nav-item > a { display: flex; height: 100%; padding: 0 18px; align-items: center; font-weight: 600; }
.main-nav > a:hover, .nav-item:hover > a, .current-menu { color: var(--fc-blue); }
.nav-item { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 285px;
    padding: 12px;
    border-top: 3px solid var(--fc-blue);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: var(--fc-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s ease;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: #415064; font-size: 14px; }
.nav-dropdown a:hover { color: var(--fc-blue); background: var(--fc-blue-soft); }
.fc-product-tree-dropdown {
    left: -180px;
    width: min(560px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.nav-item-products:hover .fc-product-tree-dropdown { display: grid; }
.fc-product-tree-dropdown a { display: flex; min-height: 50px; align-items: center; line-height: 1.35; }
.header-contact { display: inline-flex; align-items: center; gap: 9px; color: var(--fc-blue); font-weight: 700; white-space: nowrap; }
.header-contact::before { content: "●"; font-size: 12px; }
.menu-toggle { display: none; }
.menu-toggle-label { display: none; margin-left: auto; font-size: 25px; cursor: pointer; }

.fc-hero {
    position: relative;
    aspect-ratio: 16 / 5;
    overflow: hidden;
    background: #edf6fc url('assets/images/home/banner1.jpg') center/cover no-repeat;
}

.fc-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.fc-about-media { position: relative; }
.fc-about-media img { width: 100%; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); }
.fc-about-copy h2 { margin-bottom: 16px; font-size: clamp(32px, 4vw, 46px); }
.fc-about-copy .lead { color: var(--fc-blue); font-size: 20px; font-weight: 700; }
.fc-about-copy p { color: var(--fc-muted); }

.fc-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fc-category-card { position: relative; min-height: 285px; overflow: hidden; border-radius: var(--fc-radius); background: #dbeaf5; box-shadow: 0 10px 28px rgba(14,55,91,.10); }
.fc-category-card img { width: 100%; height: 285px; object-fit: cover; transition: .35s ease; }
.fc-category-card:hover img { transform: scale(1.04); }
.fc-category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(2,30,53,.86) 100%); }
.fc-category-card-content { position: absolute; z-index: 1; right: 22px; bottom: 20px; left: 22px; color: #fff; }
.fc-category-card h3 { margin: 0 0 5px; font-size: 22px; }
.fc-category-card span { font-size: 14px; opacity: .86; }

.fc-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fc-card { overflow: hidden; border: 1px solid var(--fc-line); border-radius: 14px; background: #fff; transition: .22s ease; }
.fc-card:hover { border-color: transparent; box-shadow: var(--fc-shadow); transform: translateY(-5px); }
.fc-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f8; }
.fc-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: .3s ease; }
.fc-card:hover .fc-card-media img { transform: scale(1.035); }
.fc-card-body { padding: 20px; }
.fc-card-kicker { margin-bottom: 8px; color: var(--fc-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fc-card h3 { margin: 0 0 10px; font-size: 18px; }
.fc-card p { margin: 0; color: var(--fc-muted); font-size: 14px; }
.fc-card-link { display: inline-block; margin-top: 14px; color: var(--fc-blue); font-weight: 700; }

.fc-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fc-news-card { overflow: hidden; border-radius: var(--fc-radius); background: #fff; box-shadow: 0 9px 30px rgba(23,55,85,.08); }
.fc-news-card img { width: 100%; height: 220px; object-fit: cover; }
.fc-news-card-body { padding: 24px; }
.fc-news-card time { color: var(--fc-blue); font-size: 13px; font-weight: 700; }
.fc-news-card h3 { margin: 9px 0 12px; font-size: 21px; }
.fc-news-card p { margin: 0; color: var(--fc-muted); }

.fc-cta { padding: 68px 0; color: #fff; background: linear-gradient(115deg, #064a80, #0b76bd); }
.fc-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.fc-cta h2 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 42px); }
.fc-cta p { margin: 0; opacity: .88; }
.fc-cta .fc-button { border-color: #fff; color: var(--fc-blue-dark); background: #fff; }

.fc-page-hero { padding: 84px 0; color: #fff; background: linear-gradient(rgba(3,55,94,.78), rgba(3,55,94,.78)), url('assets/images/banner.jpg') center/cover; }
.fc-page-hero h1 { margin-bottom: 10px; font-size: clamp(36px, 5vw, 56px); }
.fc-breadcrumbs { font-size: 14px; opacity: .9; }
.fc-breadcrumbs a:hover { text-decoration: underline; }
.fc-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.fc-filter a { padding: 9px 15px; border: 1px solid var(--fc-line); border-radius: 999px; color: #42536a; background: #fff; font-size: 14px; }
.fc-filter a:hover, .fc-filter a.active { border-color: var(--fc-blue); color: #fff; background: var(--fc-blue); }
.fc-pagination { margin-top: 42px; text-align: center; }
.fc-pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; margin: 3px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--fc-line); border-radius: 7px; }
.fc-pagination .current, .fc-pagination a:hover { border-color: var(--fc-blue); color: #fff; background: var(--fc-blue); }

.fc-product-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.fc-product-main-image { display: flex; min-height: 440px; align-items: center; justify-content: center; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: #fff; }
.fc-product-main-image img { max-height: 420px; object-fit: contain; padding: 18px; }
.fc-product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.fc-product-thumbs a { display: flex; aspect-ratio: 1; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--fc-line); border-radius: 8px; }
.fc-product-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.fc-product-summary h1 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 48px); }
.fc-product-summary .category { margin-bottom: 12px; color: var(--fc-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fc-product-summary .excerpt { color: var(--fc-muted); font-size: 18px; }
.fc-detail-block { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--fc-line); }
.fc-detail-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fc-detail-block h2 { color: var(--fc-blue-dark); font-size: 28px; }
.fc-rich-content { overflow-wrap: anywhere; }
.fc-rich-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.fc-rich-content th, .fc-rich-content td { min-width: 125px; padding: 11px 13px; border: 1px solid #ccd8e2; text-align: left; }
.fc-rich-content tr:nth-child(even) { background: #f7fafc; }
.fc-rich-content img { margin: 24px auto; }

.fc-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; }
.fc-article { min-width: 0; }
.fc-article-meta { margin: -2px 0 24px; color: var(--fc-muted); font-size: 14px; }
.fc-article .featured { width: 100%; max-height: 560px; margin-bottom: 30px; border-radius: var(--fc-radius); object-fit: cover; }
.fc-sidebar { padding: 24px; border-radius: 12px; background: var(--fc-bg); }
.fc-sidebar h3 { margin-bottom: 16px; }
.fc-sidebar a { display: block; padding: 10px 0; border-bottom: 1px solid var(--fc-line); color: #435469; font-size: 14px; }

.site-footer { position: relative; color: #dbeafa; background: #063e69 url('assets/images/footer-bg.jpg') center/cover; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(3,43,75,.90); }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr; gap: 42px; padding: 62px 0 45px; }
.footer-logo { width: 118px; margin-bottom: 18px; }
.site-footer h3 { margin-bottom: 18px; color: #fff; font-size: 18px; }
.site-footer p { margin: 0 0 9px; }
.site-footer a { display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { position: relative; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); color: #bdd1e2; font-size: 13px; text-align: center; }
.fc-empty { padding: 60px 20px; border: 1px dashed var(--fc-line); border-radius: var(--fc-radius); color: var(--fc-muted); text-align: center; }

@media (max-width: 1050px) {
    .header-contact { display: none; }
    .main-nav > a, .nav-item > a { padding-inline: 12px; }
    .fc-card-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .header-inner { min-height: 70px; }
    .menu-toggle-label { display: block; }
    .main-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; height: auto; padding: 14px 20px 22px; flex-direction: column; background: #fff; box-shadow: 0 15px 25px rgba(0,0,0,.12); }
    .menu-toggle:checked ~ .main-nav { display: flex; }
    .main-nav > a, .nav-item > a { height: auto; padding: 11px 0; }
    .nav-dropdown { position: static; display: block; width: auto; padding: 0 0 5px 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .nav-item-products:hover .fc-product-tree-dropdown { display: block; }
    .fc-hero { aspect-ratio: 4 / 3; background-image: url('assets/images/home/mobile-banner1.jpg'); }
    .fc-about, .fc-product-top, .fc-article-wrap { grid-template-columns: 1fr; }
    .fc-category-grid, .fc-news-grid { grid-template-columns: repeat(2, 1fr); }
    .fc-card-grid { grid-template-columns: repeat(2, 1fr); }
    .fc-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .fc-container { width: min(100% - 28px, 1180px); }
    .fc-section { padding: 58px 0; }
    .fc-hero { aspect-ratio: 4 / 3; }
    .fc-category-grid, .fc-card-grid, .fc-news-grid, .footer-inner { grid-template-columns: 1fr; }
    .fc-category-card, .fc-category-card img { min-height: 250px; height: 250px; }
    .fc-product-main-image { min-height: 320px; }
}
