/* Shared styles for the brand hardware pages (yeastar-hardware.php, yealink-ip-phones.php, yealink-headsets.php). */

.hw-page {
    font-family: 'Poppins', 'Source Sans Pro', sans-serif;
    background: #f7fbff;
    color: #26364a;
}

.hw-page .container { max-width: 1180px; }

.hw-sec { padding: 64px 0; }
.hw-sec-alt { background: #eef5fc; }

/* Hero */
.hw-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #071d3f 0%, #0f3b78 45%, #1f5ea8 100%);
    color: #fff;
    padding: 72px 0 64px;
}

.hw-hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.hw-hero-copy { flex: 1 1 520px; min-width: 0; }
.hw-hero-media { flex: 0 1 400px; min-width: 0; text-align: center; }

.hw-hero-media img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
}

.hw-eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hw-hero h1 {
    font-size: 42px;
    line-height: 1.22;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.hw-hero .hw-lead {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,0.92);
    margin: 0 0 22px;
    max-width: 680px;
}

/* Buttons */
.hw-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    margin: 6px 6px 6px 0;
    transition: all 0.25s ease;
}

.hw-btn:hover, .hw-btn:focus { text-decoration: none; transform: translateY(-2px); }

.hw-btn-primary { background: #ffb703; color: #10213d; box-shadow: 0 12px 28px rgba(255,183,3,0.26); }
.hw-btn-primary:hover, .hw-btn-primary:focus { background: #ffd166; color: #10213d; }

.hw-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.hw-btn-outline:hover, .hw-btn-outline:focus { background: rgba(255,255,255,0.12); color: #fff; }

.hw-btn-dark { background: #0f2d5c; color: #fff; }
.hw-btn-dark:hover, .hw-btn-dark:focus { background: #1f5ea8; color: #fff; }

.hw-btn-light { background: #fff; color: #0f2d5c; border-color: #dfeaf6; }
.hw-btn-light:hover, .hw-btn-light:focus { background: #eef5fc; color: #0f2d5c; }

/* Highlight strip */
.hw-strip { margin-top: -30px; position: relative; z-index: 2; }

.hw-strip-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    background: #fff;
    border: 1px solid #e2ecf7;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 46px rgba(15,45,92,0.14);
}

.hw-strip-item i { font-size: 22px; color: #1f5ea8; margin-bottom: 8px; display: block; }
.hw-strip-item strong { display: block; color: #0f2d5c; font-size: 15px; margin-bottom: 4px; }
.hw-strip-item span { color: #617085; font-size: 13px; line-height: 1.6; display: block; }

/* Section headings */
.hw-title {
    text-align: center;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 800;
    color: #0f2d5c;
    margin: 0 0 12px;
}

.hw-subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 1.85;
    color: #5f6f82;
    max-width: 860px;
    margin: 0 auto 16px;
}

.hw-line {
    width: 86px;
    height: 4px;
    background: #1f5ea8;
    margin: 0 auto 34px;
    border-radius: 30px;
}

/* Product grid (e-market feed) */
.hw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.hw-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(15,45,92,0.06);
    transition: all 0.25s ease;
}

.hw-product:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,45,92,0.12); }

.hw-product-img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    margin-bottom: 14px;
}

.hw-product h3 {
    color: #0f2d5c;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}

.hw-product-model { color: #586b80; font-size: 14px; margin: 0 0 6px; }

.hw-product-price { color: #0f2d5c; font-size: 21px; font-weight: 700; margin: 4px 0 16px; }

.hw-product-ask { font-size: 16px; }
.hw-product-ask a { color: #198754; font-weight: 700; text-decoration: none; }
.hw-product-ask a:hover, .hw-product-ask a:focus { text-decoration: underline; }

.hw-product-original {
    color: #77889b;
    font-size: 15px;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 8px;
}

.hw-product .hw-btn { margin: auto 0 0; text-align: center; }

.hw-feed-note { text-align: center; color: #617085; font-size: 14px; margin: 22px 0 0; }
.hw-feed-note a { color: #174b87; font-weight: 700; }

.hw-feed-empty {
    background: #fff;
    border: 1px dashed #c9d9ea;
    border-radius: 18px;
    padding: 34px 24px;
    text-align: center;
    color: #526174;
}

.hw-feed-empty i { font-size: 30px; color: #1f5ea8; margin-bottom: 10px; display: block; }
.hw-feed-empty p { margin: 0 auto 16px; max-width: 560px; line-height: 1.8; }

/* Cards */
.hw-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hw-card {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 8px 25px rgba(15,45,92,0.07);
}

.hw-card h3 { color: #0f2d5c; font-size: 20px; font-weight: 800; line-height: 1.35; margin: 0 0 10px; }
.hw-card h3 i { color: #1f5ea8; margin-right: 8px; }
.hw-card p { color: #627086; font-size: 15px; line-height: 1.8; margin: 0 0 10px; }

.hw-card ul { list-style: none; padding: 0; margin: 0; }
.hw-card li { color: #526174; font-size: 14px; line-height: 1.7; padding: 6px 0; border-top: 1px solid #edf2f7; }
.hw-card li i { color: #1f5ea8; margin-right: 8px; }

/* Pairing panel */
.hw-panel {
    background: linear-gradient(135deg, #0f2d5c 0%, #1f5ea8 100%);
    color: #fff;
    border-radius: 26px;
    padding: 36px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    box-shadow: 0 16px 42px rgba(15,45,92,0.16);
}

.hw-panel-copy { flex: 1 1 420px; min-width: 0; }
.hw-panel-links { flex: 1 1 300px; min-width: 0; }
.hw-panel h2 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.hw-panel p { color: rgba(255,255,255,0.9); line-height: 1.85; margin: 0; }

.hw-panel-links a {
    display: block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-decoration: none;
}

.hw-panel-links a:hover, .hw-panel-links a:focus { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }
.hw-panel-links a i { float: right; margin-top: 4px; }

/* FAQ */
.hw-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hw-faq-item {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 7px 22px rgba(15,45,92,0.05);
}

.hw-faq-item h3 { margin: 0 0 10px; color: #0f2d5c; font-size: 18px; line-height: 1.45; font-weight: 800; }
.hw-faq-item p { margin: 0; color: #617085; line-height: 1.8; font-size: 15px; }

/* CTA */
.hw-cta {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 24px;
    padding: 36px 26px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15,45,92,0.08);
}

.hw-cta h2 { font-size: 30px; line-height: 1.35; font-weight: 800; color: #0f2d5c; margin: 0 0 12px; }
.hw-cta p { font-size: 16px; color: #617085; line-height: 1.85; max-width: 760px; margin: 0 auto 20px; }

@media (max-width: 991px) {
    .hw-hero h1 { font-size: 34px; }
    .hw-title { font-size: 28px; }
    .hw-strip-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hw-sec { padding: 48px 0; }
    .hw-hero { padding: 52px 0 48px; }
    .hw-hero h1 { font-size: 28px; }
    .hw-hero .hw-lead { font-size: 16px; }
    .hw-hero-media img { max-height: 220px; }
    .hw-strip { margin-top: 18px; }
    .hw-title, .hw-cta h2, .hw-panel h2 { font-size: 24px; }
    .hw-cards, .hw-faq { grid-template-columns: 1fr; }
    .hw-btn { display: block; text-align: center; margin: 8px 0; }
}

@media (max-width: 480px) {
    .hw-strip-box { grid-template-columns: 1fr; }
}
