/**
 * BisGroup — sections.css
 * Author: Mirza Nayeem
 * Extra utility styles shared across sections.
 */

/* ── mist background ── */
.bg-mist   { background: var(--mist); }
.bg-navy   { background: var(--deep-navy); color: #fff; }
.bg-white  { background: #fff; }

/* ── Text utilities ── */
.text-navy  { color: var(--deep-navy); }
.text-blue  { color: var(--brand-blue); }
.text-cyan  { color: var(--cyan); }
.text-green { color: var(--green); }
.text-muted { color: var(--cool-grey); }

/* ── Search Form ── */
.search-form { display: flex; gap: 0; border-radius: 100px; overflow: hidden; border: 1.5px solid rgba(13,50,128,0.18); }
.search-form input[type="search"] {
    flex: 1;
    padding: 0.7rem 1.2rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.search-form button[type="submit"] {
    padding: 0.7rem 1.4rem;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background var(--dur-ui);
}
.search-form button[type="submit"]:hover { background: var(--deep-navy); }

/* ── Contact Form Basic ── */
.cn-form { display: flex; flex-direction: column; gap: 1.2rem; }
.cn-form label { font-weight: 600; font-size: 0.88rem; color: var(--ink); display: block; margin-bottom: 0.4rem; }
.cn-form input,
.cn-form select,
.cn-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(13,50,128,0.18);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    transition: border-color var(--dur-ui), box-shadow var(--dur-ui);
    outline: none;
}
.cn-form input:focus,
.cn-form select:focus,
.cn-form textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(13,50,128,0.1);
}
.cn-form textarea { min-height: 140px; resize: vertical; }

/* ── WordPress Comment Form Styles ── */
#commentform input,
#commentform textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(13,50,128,0.16);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 1rem;
    outline: none;
    transition: border-color var(--dur-ui);
}
#commentform input:focus,
#commentform textarea:focus { border-color: var(--brand-blue); }
#commentform .form-submit input[type="submit"] {
    width: auto;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background var(--dur-ui);
}
#commentform .form-submit input[type="submit"]:hover { background: var(--deep-navy); }

.comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(13,50,128,0.08);
}
.comment-list .comment .fn { font-weight: 700; color: var(--deep-navy); }
.comment-list .comment .comment-date { font-size: 0.8rem; color: var(--cool-grey); }
.comment-list .comment .comment-content { margin-top: 0.8rem; font-size: 0.97rem; line-height: 1.7; }

/* ── Responsive Typography ── */
@media (max-width: 640px) {
    h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
    .section { padding-block: clamp(3rem, 7vw, 5rem); }
}

/* ── Scroll margin for fixed nav ── */
section[id] { scroll-margin-top: 80px; }

/* ── Focus visible (accessibility) ── */
*:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Image lazy loading blur-up ── */
img[loading="lazy"] { transition: opacity 0.4s; }

/* ── Utilities ── */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── WordPress alignment ── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--cool-grey); text-align: center; margin-top: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-item img { border-radius: var(--radius-sm); }

/* ── Notification banners ── */
.cn-notice {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.cn-notice-info    { background: rgba(13,50,128,0.06); border-left: 4px solid var(--brand-blue); }
.cn-notice-success { background: rgba(34,181,115,0.06); border-left: 4px solid var(--green); }
.cn-notice-warning { background: rgba(245,158,11,0.1); border-left: 4px solid #f59e0b; }
.cn-notice-error   { background: rgba(239,68,68,0.08); border-left: 4px solid #ef4444; }

/* ── Print styles ── */
@media print {
    .site-header,
    .back-to-top,
    .scroll-thread,
    #cn-loader { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; }
    .hero { min-height: auto; background: none; color: #000; }
}
