/*
Theme Name: Indigo Child
Theme URI: https://www.indigoclothing.com
Description: Child theme for Indigo Clothing, built on GeneratePress.
Author: Indigo Clothing
Template: generatepress
Version: 1.0.3
Text Domain: indigo-child
*/

/* Header: hide site title text + tagline when logo is present */
.site-header .main-title,
.site-header .site-description {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Hide right sidebar globally — no-sidebar layout */
#right-sidebar {
    display: none;
}
.site-content .content-area {
    width: 100%;
}

/* Navigation CTA button — apply CSS class "menu-cta" to Get a Quote menu item.
   GP nav is float-based; vertical centering is done via margin-top.
   Nav bar is 60px tall; button is ~27px (line-height 15px + 12px padding) → margin-top 16px centres it. */
.main-navigation .menu-cta > a {
    display: inline-block !important;
    background-color: #FF6B6B;
    color: #FFFFFF !important;
    border-radius: 4px;
    padding: 10px 20px !important;
    margin-left: 10px;
    margin-top: 13px;
    line-height: 1 !important;
    transition: background-color 0.2s ease;
}
.main-navigation .menu-cta > a:hover {
    background-color: #E85555;
    color: #FFFFFF !important;
}
/* Mobile slide-out and mobile header: reset desktop positioning */
.slideout-navigation .menu-cta > a,
.mobile-header-navigation .menu-cta > a {
    display: block !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

/* Footer widget links — remove underlines, add spacing */
.footer-widgets a {
    text-decoration: none;
}
.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widgets ul li {
    margin-bottom: 8px;
}

/* Headings colour override — ensure indigo */
h1, h2, h3, h4, h5, h6 {
    color: #2D2D6E;
}

/* Cover block headings should inherit their set colour */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
    color: inherit;
}

/* Block editor colour palette — frontend CSS */
.has-indigo-primary-color { color: #2D2D6E !important; }
.has-indigo-primary-background-color { background-color: #2D2D6E !important; }
.has-indigo-dark-color { color: #1A1A4E !important; }
.has-indigo-dark-background-color { background-color: #1A1A4E !important; }
.has-indigo-light-color { color: #E8E8F4 !important; }
.has-indigo-light-background-color { background-color: #E8E8F4 !important; }
.has-indigo-accent-color { color: #FF6B6B !important; }
.has-indigo-accent-background-color { background-color: #FF6B6B !important; }
.has-white-color { color: #FFFFFF !important; }
.has-white-background-color { background-color: #FFFFFF !important; }
.has-light-grey-color { color: #F5F5F5 !important; }
.has-light-grey-background-color { background-color: #F5F5F5 !important; }
.has-body-text-color { color: #333333 !important; }
.has-body-text-background-color { background-color: #333333 !important; }
.has-muted-text-color { color: #666666 !important; }
.has-muted-text-background-color { background-color: #666666 !important; }

/* ================================================
   Links on dark (indigo-primary) backgrounds
   White with coral hover — accessibility: passes
   WCAG AA (white #fff on #2D2D6E = 9.7:1 contrast)
   ================================================ */
.has-indigo-primary-background-color a:not(.wp-block-button__link) {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}
.has-indigo-primary-background-color a:not(.wp-block-button__link):hover {
    color: #FF6B6B;
    text-decoration-color: #FF6B6B;
}

/* ================================================
   Service cards — full-bleed image, whole-card link
   ================================================ */
.service-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
}
.service-card .wp-block-image {
    margin: -16px -16px 14px !important;
    line-height: 0;
    overflow: hidden;
}
.service-card .wp-block-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    max-width: none;
    border-radius: 0;
}
.service-card .wp-block-heading {
    margin-top: 0;
    margin-bottom: 8px;
}
.service-card .wp-block-heading a {
    color: #2D2D6E;
    text-decoration: none;
    font-weight: inherit;
}
/* Stretch heading link to cover the entire card */
.service-card .wp-block-heading a::after {
    content: '';
    position: absolute;
    inset: 0;
}
.service-card:hover .wp-block-heading a {
    color: #FF6B6B;
}

/* Mobile: prevent .alignwide from overflowing the viewport.
   GP uses negative margins to break .alignwide out of the container;
   on narrow screens this causes horizontal scroll. */
@media (max-width: 768px) {
    .alignwide {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
}

/* ================================================
   Blog post design — step cards, supplies box,
   pros/cons grid, disclosure callout
   ================================================ */

/* Affiliate disclosure */
p.disclosure-box {
    background: #fffdf5;
    border: 1px solid #ffe0a0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px !important;
    color: #7a6000;
}

/* What You'll Need supplies box */
.supplies-box {
    border: 1.5px solid #e0e0f0;
    border-radius: 8px;
    padding: 24px 28px;
}
.supplies-box h2 {
    margin-bottom: 4px;
}
.supplies-box .wp-block-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    padding: 0;
    margin-top: 12px;
}
@media (max-width: 600px) {
    .supplies-box .wp-block-list {
        grid-template-columns: 1fr;
    }
}
.supplies-box .wp-block-list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
}
.supplies-box .wp-block-list li::before {
    content: '→';
    color: #FF6B6B;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* Method intro callout */
.method-intro {
    background: #f8f8ff;
    border-left: 4px solid #2D2D6E;
    padding: 16px 20px !important;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem !important;
}

/* Steps 2-column grid — GP wraps group content in __inner-container */
.steps-grid > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 2rem;
}
@media (max-width: 640px) {
    .steps-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }
}

/* Individual step card */
.step-card {
    border: 1.5px solid #e8e8f2;
    border-radius: 8px;
    padding: 20px 22px !important;
    transition: border-color 0.2s ease;
}
.step-card:hover {
    border-color: #2D2D6E;
}
.step-card .step-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #FF6B6B !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px !important;
}
.step-card h3 {
    font-size: 16px !important;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 14px !important;
    color: #555;
    line-height: 1.65;
    margin-bottom: 6px !important;
}
.step-card p:last-child {
    margin-bottom: 0 !important;
}

/* Pros/cons side-by-side */
.pros-cons-grid {
    gap: 16px !important;
    margin-bottom: 2rem;
}
.pros-card,
.cons-card {
    border-radius: 8px !important;
    padding: 20px 22px !important;
}
.pros-card {
    background: #f0fff4;
    border: 1.5px solid #b8e8c8 !important;
}
.cons-card {
    background: #fff8f8;
    border: 1.5px solid #f0c0c0 !important;
}
.pros-card h3 { color: #1a7a3a !important; }
.cons-card h3 { color: #b03030 !important; }
.pros-card .wp-block-list,
.cons-card .wp-block-list {
    list-style: none;
    padding: 0;
}
.pros-card .wp-block-list li,
.cons-card .wp-block-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    margin-bottom: 4px;
}
.pros-card .wp-block-list li::before {
    content: '✓';
    color: #1a7a3a;
    font-weight: 700;
    position: absolute;
    left: 0;
}
.cons-card .wp-block-list li::before {
    content: '✗';
    color: #b03030;
    font-weight: 700;
    position: absolute;
    left: 0;
}
