/*
Theme Name: Studio Materia - by Sweetmind
Author: Sweetmind
Description: Architectural Lead Generation - Furniture, Bathrooms, and Structural Design.
Version: 1.0
Text Domain: sm-studiomateria
*/

/* 1. IMPORT PREMIUM FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

/* 2. GLOBAL VARIABLES */
:root { 
    --sm-gold: #D4AF37 !important; 
    --sm-dark: #1A1A1A; 
}

body { 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. TYPOGRAPHY & BRANDING UTILITIES */
.gold-accent { 
    color: #D4AF37 !important; 
    --sm-gold: #D4AF37; 
}

.bg-gold { background-color: var(--sm-gold) !important; }
.border-gold { border-color: var(--sm-gold); }

/* Force Serif font wherever Tailwind's .font-serif is used */
.font-serif {
    font-family: 'Playfair Display', serif !important;
}

/* 4. HERITAGE CARDS DESIGN MATCH (From Screenshot) */
/* This automatically makes the 2nd card's title italic (e.g. 'Portugal') to match your image exactly */
section.py-20.px-8 > div.max-w-7xl > div:nth-child(2) > span.font-serif {
    font-style: italic;
}

/* 5. ANIMATIONS & UI FIXES */
.fade-in { animation: fadeIn 1.2s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Forces the Admin Bar to push the fixed nav down so nothing is cut off */
.admin-bar nav { top: 32px !important; }
@media screen and (max-width: 782px) {
    .admin-bar nav { top: 46px !important; }
}

/* Custom Selection Highlight */
footer *::selection { background-color: var(--sm-gold) !important; color: #000000 !important; }
footer *::-moz-selection { background-color: var(--sm-gold) !important; color: #000000 !important; }

/* Form & UI Resets */
.service-card button:focus { outline: none; }
input[type=range].accent-gold { accent-color: #D4AF37; }

/* Navigation Resets */
nav ul, nav li, nav a, nav span {
    list-style: none !important;
    list-style-type: none !important;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
}
nav li { display: inline-block; }

/* 6. STUDIO MATERIA WYSIWYG OVERRIDES (Quill.js) */
.ql-toolbar.ql-snow { border: 1px solid #e4e4e7 !important; border-bottom: none !important; font-family: 'Inter', sans-serif; }
.ql-container.ql-snow { border: 1px solid #e4e4e7 !important; min-height: 120px; font-size: 14px; font-family: 'Inter', sans-serif; color: #27272a; }
.ql-editor:focus { border-color: #D4AF37 !important; outline: none; }
.ql-snow .ql-toolbar button:hover, .ql-snow .ql-toolbar button.ql-active { color: #D4AF37 !important; }
.ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill { fill: #D4AF37 !important; }
.ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke { stroke: #D4AF37 !important; }

/* Custom Scrollbar for Project Summary */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #18181b; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #D4AF37; }

/* Summary Step Rich Text Formatting */
.prose-summary ul { list-style-type: disc !important; padding-left: 1.5rem !important; margin: 0.5em 0 !important; }
.prose-summary ol { list-style-type: decimal !important; padding-left: 1.5rem !important; margin: 0.5em 0 !important; }
.prose-summary strong { font-weight: 700 !important; color: #D4AF37 !important; } 
.prose-summary em { font-style: italic !important; }
.prose-summary p { margin-bottom: 0.5em !important; }

/* =========================================================
   STUDIO MATERIA: BULLETPROOF FISHBONE TIMELINE (V2)
   ========================================================= */
.sm-fishbone-container {
    position: relative;
    max-width: 64rem !important;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Central Spine */
.sm-fishbone-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e4e4e7;
    transform: translateX(-50%);
    z-index: 0;
}

/* Phase Row (Gutenberg Columns container) */
.sm-fishbone-row {
    position: relative;
    margin-bottom: 3rem !important;
    z-index: 10;
    display: flex !important;
    align-items: flex-start !important;
}

/* The Gold Node */
.sm-fishbone-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 2rem; 
    width: 18px;
    height: 18px;
    background-color: #D4AF37;
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 6px #ffffff;
}

/* --- DESKTOP LAYOUT --- */
@media (min-width: 769px) {
    /* Force single columns to occupy exactly half the space */
    .sm-fishbone-row > .wp-block-column {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
    }
    
    /* The Magic Fix: Push the right-side phases to the right */
    .sm-fishbone-right { justify-content: flex-end !important; }
    .sm-fishbone-left { justify-content: flex-start !important; }
    
    /* Text Padding */
    .sm-fishbone-left .wp-block-column { padding-right: 4rem; text-align: right; }
    .sm-fishbone-right .wp-block-column { padding-left: 4rem; text-align: left; }
}

/* --- LEFT ALIGNED LISTS (SUB-BONES) --- */
.sm-fishbone-left ul {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1rem;
}
.sm-fishbone-left ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: #71717a;
    font-size: 0.875rem;
    max-width: 90%;
    line-height: 1.6;
    text-align: right;
}
.sm-fishbone-left ul li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 12px;
    height: 1px;
    background-color: #D4AF37;
}

/* --- RIGHT ALIGNED LISTS (SUB-BONES) --- */
.sm-fishbone-right ul {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
}
.sm-fishbone-right ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #71717a;
    font-size: 0.875rem;
    max-width: 90%;
    line-height: 1.6;
    text-align: left;
}
.sm-fishbone-right ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 1px;
    background-color: #D4AF37;
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    .sm-fishbone-container::before { left: 1rem; }
    .sm-fishbone-row::after { left: 1rem; top: 1.5rem; }
    
    .sm-fishbone-row { flex-direction: column !important; }
    .sm-fishbone-row > .wp-block-column { 
        width: 100% !important; 
        max-width: 100% !important; 
        flex-basis: 100% !important; 
    }
    
    .sm-fishbone-left .wp-block-column,
    .sm-fishbone-right .wp-block-column {
        padding-left: 3.5rem !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }
    
    /* Fix Left List on Mobile */
    .sm-fishbone-left ul { align-items: flex-start !important; }
    .sm-fishbone-left ul li {
        padding-right: 0 !important;
        padding-left: 1.5rem !important;
        text-align: left !important;
        max-width: 100% !important;
    }
    .sm-fishbone-left ul li::after { display: none !important; }
    .sm-fishbone-left ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10px;
        width: 12px;
        height: 1px;
        background-color: #D4AF37;
    }
}

/* =========================================================
   STUDIO MATERIA: OUR BRANDS LAYOUT FIX
   ========================================================= */
.sm-brand-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 3rem; /* Mobile gap */
}

@media (min-width: 769px) {
    .sm-brand-row {
        flex-direction: row !important;
        align-items: center !important;
        gap: 4rem; /* Desktop gap */
    }
    .sm-brand-row > .wp-block-column {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
    }
}

/* =========================================================
   STUDIO MATERIA: STANDARD PAGE TYPOGRAPHY (Privacy Policy)
   ========================================================= */
.entry-content {
    color: #71717a; /* zinc-500 */
    font-weight: 300;
    font-size: 0.875rem; /* 14px */
    line-height: 1.8;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1.5rem;
}

/* Headings */
.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.entry-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Lists */
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
}

/* Links */
.entry-content a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}
.entry-content a:hover {
    color: #1a1a1a;
}

/* Bold Text */
.entry-content strong, 
.entry-content b {
    font-weight: 600;
    color: #1a1a1a;
}

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

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}