/*
 * seo-additions.css
 * Styles for SEO pass additions — April 2026
 *
 * Covers four areas added in Tasks 04-07:
 *   1. Product detail sections (.prodpage > .fullwidth and .sm-why-box)
 *   2. FAQ accordions (.sm-faq)
 *   3. Blog pages (.sm-blog-post, .sm-blog-card, .sm-blog-listing)
 *   4. 404 page (.sm-404-hero, .sm-404-links, .sm-btn-orange)
 *
 * Selectors are scoped to .sm-* prefixes or existing unique class names
 * (.faq-area was replaced with .sm-faq in markup) to prevent bleed-through
 * to existing site pages.
 *
 * Brand reference:
 *   Orange:      #f26520 / linear-gradient(to right, #f26520, #C84A00)
 *   Dark:        #212121 (CTA/footer bg) / #121212 (body text)
 *   Gray bg:     #f4f6f7 / #eee
 *   Font:        "Poppins", sans-serif
 * ============================================================ */


/* ============================================================
   1. PRODUCT DETAIL SECTIONS — Task 05
   White card treatment for .fullwidth blocks that sit directly
   inside .prodpage but OUTSIDE the .proddesc CSS grid.
   (The .prodpage .proddesc .fullwidth rule in style.css requires
   the .proddesc ancestor — these new blocks don't have it.)
   ============================================================ */

/* Adjacent .prodpagewrapper blocks (hero + product details on every
   product page) double up .prodpage's 60px top + 80px bottom padding,
   creating a 140px dead zone between sections. Zero the inner gap so
   the two stacks read as one continuous content area.
   The :has() selector handles the first wrapper (Chrome 105+ /
   Safari 15.4+ / Firefox 121+); the + selector handles the second. */
.prodpagewrapper:has(+ .prodpagewrapper) .prodpage {
    padding-bottom: 0;
}
.prodpagewrapper + .prodpagewrapper .prodpage {
    padding-top: 0;
}

.prodpage > .fullwidth {
    text-align: center;
    padding: 40px 32px;
    background-color: #fff;
    border-radius: 1em;
    margin: 32px 0;
}

.prodpage > .fullwidth p{
    text-align: left;
    padding-bottom: 1em;
}

/* Responsive padding */
@media (max-width: 767px) {
    .prodpage > .fullwidth {
        padding: 28px 18px;
    }
}

/* Branded specs table — row headers get a light gray tint with orange left accent */
.prodpage .table th[scope="row"] {
    background-color: #f4f6f7;
    font-weight: 600;
    color: #333;
    width: 42%;
    border-left: 3px solid #f26520;
}

.prodpage .table td,
.prodpage .table th {
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Alternate row tint for readability */
.prodpage .table tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

/* "Why SignMaster" callout box — orange-accented, left-aligned
   Applied via .sm-why-box class alongside .fullwidth.
   Uses .prodpage .fullwidth.sm-why-box (3-class specificity) to
   override the 2-class .prodpage > .fullwidth rule above. */
.prodpage .fullwidth.sm-why-box {
    background-color: #fff8f4;
    border-left: 4px solid #f26520;
    text-align: left;
    padding: 28px 32px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.prodpage .fullwidth.sm-why-box h2 {
    color: #212121;
    text-align: left;
    padding-bottom: 16px;
}

/* Why-box bullet icons — add breathing room between the check icon
   and the bullet text (the Popular Uses grid handles its own icons,
   but this block is excluded from that rule). */
.prodpage .fullwidth.sm-why-box .product-list ul li i {
    color: #f26520;
    margin-right: 10px;
}

/* ============================================================
   2. FAQ ACCORDION — Task 04
   Replaces generic Bootstrap accordion with site-native styling.
   Applied via .sm-faq on the <section> wrapper.
   ============================================================ */

.sm-faq {
    padding: 48px 0 64px;
    background-color: #f4f6f7;
}

.sm-faq h2 {
    color: #212121;
    margin-bottom: 28px;
    font-size: 1.75rem;
}

/* Strip Bootstrap card chrome — use subtle border-bottom dividers only */
.sm-faq .accordion .card {
    background-color: transparent;
    border: none !important;
    border-bottom: 1px solid #cbced1 !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.sm-faq .accordion .card:last-child {
    border-bottom: none !important;
}

.sm-faq .accordion .card-header {
    background-color: transparent;
    border: none;
    padding: 0;
}

.sm-faq .accordion .card-header h3 {
    margin: 0;
}

/* Question button — full-width, brand typography, left-aligned */
.sm-faq .accordion .card-header .btn-link {
    color: #121212;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem !important;
    width: 100%;
    text-align: left;
    padding: 18px 48px 18px 0;
    white-space: normal;
    line-height: 1.5;
    position: relative;
    text-decoration: none;
    border: none;
    display: block;
    transition: color 0.2s ease;
}

/* Plus / minus toggle icon in brand orange */
.sm-faq .accordion .card-header .btn-link::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #f26520;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.sm-faq .accordion .card-header .btn-link:not(.collapsed)::after {
    content: '\2212'; /* minus sign */
}

/* Active / hover: brand orange */
.sm-faq .accordion .card-header .btn-link:hover,
.sm-faq .accordion .card-header .btn-link:not(.collapsed) {
    color: #f26520;
    text-decoration: none;
}

/* Focus ring (accessibility) */
.sm-faq .accordion .card-header .btn-link:focus {
    outline: 2px solid #f26520;
    outline-offset: 2px;
    box-shadow: none;
}

/* Answer text */
.sm-faq .accordion .card-body {
    padding: 4px 16px 22px 0;
    color: #444;
    font-size: 0.97rem;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .sm-faq {
        padding: 36px 0 48px;
    }

    .sm-faq .accordion .card-header .btn-link {
        padding: 16px 44px 16px 0;
    }
}


/* ============================================================
   3. BLOG PAGES — Task 07
   ============================================================ */

/* --- 3a. Blog post article card --- */

.sm-blog-post {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px 48px;
    margin: 24px 0 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (max-width: 767px) {
    .sm-blog-post {
        padding: 24px 18px;
        margin: 16px 0 28px;
    }
}

/* H1 — post title. Softened from near-black 700 to #212121 600 and
   a hair smaller so it doesn't dominate the article card. */
.sm-blog-post h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    color: #212121;
    font-weight: 600;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .sm-blog-post h1 {
        font-size: 1.3rem;
    }
}

/* H2 section headings — thin orange divider instead of a thick 2px accent,
   weight dropped to 600 and color softened to #333 so the section breaks
   don't read as chunky. inline-block + width:100% keeps the divider spanning
   the content column. */
.sm-blog-post h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f26520;
    display: inline-block;
    width: 100%;
}

/* H3 subsection headings — same size as body copy, just slightly heavier
   and a touch darker to distinguish without adding visual weight. */
.sm-blog-post h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-top: 20px;
    margin-bottom: 6px;
}

/* Paragraphs — override global p { margin:0 } for readable prose.
   Line-height tightened from 1.8 to 1.7 and color softened #333 -> #444. */
.sm-blog-post p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-top: 12px;
}

/* Internal links — brand orange */
.sm-blog-post a {
    color: #f26520;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sm-blog-post a:hover {
    color: #C84A00;
    text-decoration: underline;
}

/* Horizontal rule */
.sm-blog-post hr {
    border-color: #dee2e6;
    margin: 30px 0;
}

/* Feature lists */
.sm-blog-post .product-list {
    margin-top: 14px;
}

.sm-blog-post .product-list ul li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #444;
    margin-top: 10px;
}

.sm-blog-post .product-list ul li i {
    color: #f26520;
    margin-right: 8px;
}

/* Breadcrumb */
.sm-blog-post .breadcrumb-item a {
    color: #888;
}

.sm-blog-post .breadcrumb-item a:hover {
    color: #f26520;
    text-decoration: none;
}

.sm-blog-post .breadcrumb-item.active {
    color: #666;
}

/* --- 3b. Blog listing cards --- */

.sm-blog-listing {
    padding: 16px 0 40px;
}

.sm-blog-card {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    background-color: #fff;
    transition: box-shadow 0.25s ease, transform 0.22s ease;
    overflow: hidden;
}

.sm-blog-card:hover {
    box-shadow: 0 8px 28px rgba(242, 101, 32, 0.16) !important;
    transform: translateY(-3px);
}

.sm-blog-card .card-body {
    padding: 28px 32px !important;
}

/* Card title link — softened from #212121 to #333 to match the
   article h2 color, orange on hover. */
.sm-blog-card .card-body h2 a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sm-blog-card .card-body h2 a:hover {
    color: #f26520;
    text-decoration: none;
}

/* "Read More" button inside card */
.sm-blog-card .card-body a.main-btn.btn-one {
    color: #fff;
    background: linear-gradient(to right, #f26520, #C84A00);
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.sm-blog-card .card-body a.main-btn.btn-one:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(242, 101, 32, 0.4);
    background: linear-gradient(to left, #f26520, #C84A00);
}

/* Prevent the global .main-btn::before gradient from interfering */
.sm-blog-card .card-body a.main-btn.btn-one::before {
    display: none;
}

@media (max-width: 767px) {
    .sm-blog-card .card-body {
        padding: 20px !important;
    }
}


/* ============================================================
   4. 404 PAGE — Task 06
   ============================================================ */

/* Hero section */
.sm-404-hero {
    background-color: #f4f6f7;
    padding: 70px 0 60px;
    text-align: center;
    border-bottom: 3px solid #f26520;
}

.sm-404-hero h1 {
    color: #f26520;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
}

.sm-404-hero h2 {
    color: #212121;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.sm-404-hero p {
    color: #444;
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.7;
}

.sm-404-hero a {
    color: #f26520;
    font-weight: 600;
    text-decoration: none;
}

.sm-404-hero a:hover {
    color: #C84A00;
    text-decoration: underline;
}

/* Product links section */
.sm-404-links {
    padding: 48px 0 60px;
    background-color: #fff;
}

.sm-404-links h2 {
    color: #212121;
    margin-bottom: 28px;
    font-size: 1.4rem;
    text-align: center;
}

.sm-404-links .product-list li {
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.sm-404-links .product-list li:last-child {
    border-bottom: none;
}

.sm-404-links .product-list li a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sm-404-links .product-list li a:hover {
    color: #f26520;
}

.sm-404-links .product-list li i {
    color: #f26520;
    margin-right: 8px;
}

/* Orange gradient button usable outside .call-action-content.
   The site's .main-btn.btn-one relies on a ::before pseudo-element
   for its gradient — this standalone class bakes the gradient in
   directly so it works anywhere on the page. */
.sm-btn-orange {
    display: inline-block;
    color: #fff !important;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    border-radius: 50px;
    padding: 0 32px;
    line-height: 48px;
    background: linear-gradient(to right, #f26520, #C84A00);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.sm-btn-orange:hover {
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(242, 101, 32, 0.45);
    background: linear-gradient(to left, #f26520, #C84A00);
    text-decoration: none !important;
}

.sm-btn-orange:focus {
    outline: 2px solid #f26520;
    outline-offset: 3px;
    color: #fff !important;
}

@media (max-width: 767px) {
    .sm-404-hero {
        padding: 50px 0 40px;
    }

    .sm-404-hero h1 {
        font-size: 4rem;
    }

    .sm-404-hero h2 {
        font-size: 1.3rem;
    }

    .sm-btn-orange {
        font-size: 14px;
        padding: 0 20px;
        line-height: 40px;
    }
}


/* ============================================================
   5. POPULAR USES TILE GRID — April 2026
   Restyle the "Popular Uses for ..." <ul> on each product page
   as a responsive 3-column grid of orange-accented tiles.

   Scoped to .prodpage > .fullwidth:not(.sm-why-box) .product-list
   so it targets ONLY the Popular Uses block:
     - :not(.sm-why-box) excludes the Why SignMaster block
       (which also contains a .product-list)
     - The About / Specs .fullwidth blocks have no .product-list
       descendant, so they can't match either.
   ============================================================ */

.prodpage > .fullwidth:not(.sm-why-box) .product-list {
    margin-top: 24px;
}

.prodpage > .fullwidth:not(.sm-why-box) .product-list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.prodpage > .fullwidth:not(.sm-why-box) .product-list ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background-color: #f4f6f7;
    border-left: 3px solid #f26520;
    border-radius: 0 6px 6px 0;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
    text-align: left;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.prodpage > .fullwidth:not(.sm-why-box) .product-list ul li:hover {
    background-color: #fff8f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(242, 101, 32, 0.12);
}

.prodpage > .fullwidth:not(.sm-why-box) .product-list ul li i {
    color: #f26520;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0;
}

/* Tighten h2 spacing so the grid sits closer to its heading */
.prodpage > .fullwidth:not(.sm-why-box) h2 + .product-list {
    margin-top: 18px;
}

@media (max-width: 991px) {
    .prodpage > .fullwidth:not(.sm-why-box) .product-list ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .prodpage > .fullwidth:not(.sm-why-box) .product-list ul {
        grid-template-columns: 1fr;
    }
}
