/* ============================================================
   OPTIUM — Custom CSS
   Supplements compiled Tailwind. Add new patterns here.
   ============================================================ */

/* OPTIUM: body/html never explicitly set a background color anywhere
   in the cascade (every ancestor from page sections up to <html> was
   fully transparent). That's invisible in a light browser/OS context
   (canvas defaults to white), but in a dark color-scheme context the
   UA's default canvas paints black instead — which is what caused the
   hero (and any other unstyled area) to render dark. Individual
   sections that declare their own bg-* utility (e.g. roofing's
   bg-concrete-darker hero) still render on top of this unaffected. */
body {
    background-color: #fcfbf9;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Flagship Pillar Article Typography & Callouts (used by blog posts) ── */
.article-content {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2b3a4a;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Marcellus', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #061221;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f5f9;
    scroll-margin-top: 7rem;
}

.article-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-family: 'Marcellus', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #123249;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 7rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #FF6B35;
    background-color: #fff7f4;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
    font-style: italic;
    color: #123249;
}

.article-content a {
    color: #447793;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(68, 119, 147, 0.3);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-content a:hover {
    color: #FF6B35;
    text-decoration-color: #FF6B35;
}

/* ---- OPTIUM (Shopify agency) component classes ---- */
[x-cloak] {
    display: none !important;
}

.section-divider {
    width: 5rem;
    height: 1px;
    background-color: #c27856;
    margin: 1.5rem auto;
}

.label-text {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-family: Lato, sans-serif;
    font-weight: 700;
    color: #c27856;
}

.card-hover {
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .08);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
}

.group:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4 {
    font-family: 'Marcellus', serif;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #c27856;
    z-index: 100;
    width: 0;
    transition: width 0.1s;
}

.prose p {
    margin-bottom: 1.75rem;
    line-height: 2rem;
    font-size: 1.125rem;
}

.prose h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    line-height: 1.2;
}

.prose h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.75rem;
}

.prose li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.inline-code {
    background-color: #f1f5f9;
    color: #c27856;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-weight: 600;
}

.anchor-link {
    opacity: 0;
    transition: opacity 0.2s;
}

h2:hover .anchor-link,
h3:hover .anchor-link {
    opacity: 1;
}

.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1280px) {
    .masonry-grid {
        column-count: 3;
    }
}

.break-inside-avoid {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Blog callouts use rounded-r-sm; DB content is not scanned by the Tailwind build, so define it here. */
.rounded-r-sm {
    border-top-right-radius: 0.125rem;
    border-bottom-right-radius: 0.125rem;
}
