/*
Theme Name: Astra Child (Maryam Decor Luxury Master 2.1)
Theme URI: https://maryamdecors.com
Description: Bespoke Luxury Mexican Home Decor & Interior Design Magazine Theme based on Master Website Design 2.1 Blueprint.
Author: Maryam Decor Studio
Author URI: https://maryamdecors.com
Template: astra
Version: 2.1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Niche Design Tokens (Home Decor & Interior Design) --- */
:root {
    --bg-canvas: #FDFBF7;
    --bg-surface: #FFFFFF;
    --bg-soft: #F7F4EE;
    --bg-topbar: #181716;
    --text-primary: #1F1E1D;
    --text-secondary: #5E5B56;
    --text-muted: #8E8A84;
    
    --accent-primary: #C06C4C;
    --accent-hover: #A85A3C;
    --accent-secondary: #5A6B5C;
    --accent-tint: #F3EBE6;
    --accent-glow: rgba(192, 108, 76, 0.15);
    
    --border-subtle: #ECE8E1;
    --border-medium: #DFD9CE;
    --border-gold: #DEC9B2;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 2px 12px rgba(31, 30, 29, 0.04);
    --shadow-hover: 0 6px 22px rgba(192, 108, 76, 0.12);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Universal Reset & Viewport Protection --- */
*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    background-color: var(--bg-canvas) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary);
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(23px, 4vw, 38px) !important; }
h2 { font-size: clamp(19px, 3.2vw, 28px) !important; }
h3 { font-size: clamp(16px, 2.4vw, 21px) !important; }
h4 { font-size: clamp(14px, 1.8vw, 17px) !important; }

p {
    margin: 0 0 0.85rem 0;
    color: var(--text-secondary);
    font-size: clamp(14px, 1.6vw, 15px);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Top Bar (Strict Single-Line Luxury Pati) --- */
.site-topbar {
    background: var(--bg-topbar) !important;
    color: #E2DDD5 !important;
    border-bottom: 1px solid #282624 !important;
    padding: 7px 0 !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 99 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.topbar-nav {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.topbar-nav::-webkit-scrollbar {
    display: none !important;
}

.topbar-nav a {
    color: #B5B0A8 !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.topbar-nav a:hover {
    color: var(--accent-primary) !important;
}

.pinterest-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #E2DDD5 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
}

.pinterest-link svg {
    fill: #E60023 !important;
    width: 14px !important;
    height: 14px !important;
}

/* --- Header --- */
.site-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    position: sticky !important;
    top: 0 !important;
    padding: 12px 0 !important;
    z-index: 90 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-soft) !important;
}

.brand-logo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.brand-logo-text {
    font-family: var(--font-heading) !important;
    font-size: clamp(20px, 4.2vw, 27px) !important;
    font-weight: 700 !important;
    color: #1F1E1D !important;
    letter-spacing: 0.02em !important;
    line-height: 1.15 !important;
    display: block !important;
    margin: 0 !important;
}

.brand-logo-text span {
    color: var(--accent-primary) !important;
}

.brand-logo-tagline {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--accent-secondary) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    display: block !important;
    margin-top: 2px !important;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    text-transform: uppercase;
    padding: 4px 0;
}

.desktop-nav li a:hover {
    color: var(--accent-primary);
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #FFFFFF !important;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid var(--accent-primary);
}

.header-cta-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 108, 76, 0.25);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero-decor {
    padding: clamp(24px, 4vw, 42px) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-canvas) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    background: var(--accent-tint);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(24px, 4vw, 38px) !important;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(14px, 1.7vw, 16px);
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 3.5vw, 36px);
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 3px;
    white-space: nowrap;
}

/* --- Category Silos Grid & Horizontal Cards --- */
.category-silos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0 24px 0;
}

.silo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.silo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-gold);
}

.silo-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
}

.silo-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.silo-card-text {
    display: flex;
    flex-direction: column;
}

.silo-card-title {
    font-size: 16px !important;
    margin: 0 0 2px 0;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: normal !important;
}

.silo-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

.silo-card-arrow {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-left: 8px;
    transition: var(--transition);
}

.silo-card:hover .silo-card-arrow {
    transform: translateX(3px);
}

/* --- AEO Highlights Strip --- */
.aeo-highlights-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0 20px 0;
}

.aeo-highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.aeo-highlight-num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.aeo-highlight-title {
    font-size: 15.5px !important;
    margin-bottom: 4px;
}

.aeo-highlight-desc {
    font-size: 13px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- Author Bio Box --- */
.author-bio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 22px 0;
    box-shadow: var(--shadow-soft);
}

.author-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border-gold);
    background: var(--accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.author-info-wrap h3 {
    margin-bottom: 2px;
    font-size: 18px !important;
}

.author-role-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 4px;
}

/* --- Policy & Form Components --- */
.policy-section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 12px;
}

.policy-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.policy-badge-num {
    width: 28px;
    height: 28px;
    background: var(--accent-tint);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.md-form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.md-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #FFFFFF;
}

.md-form-textarea {
    height: 120px !important;
    resize: none !important;
    overflow-y: auto !important;
}

/* --- Footer --- */
.site-footer {
    background: #181716;
    color: #E2DDD5;
    padding: 40px 0 20px 0;
    border-top: 1px solid #282624;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 15px !important;
    margin-bottom: 12px;
}

.footer-col p {
    color: #A39E96;
    font-size: 13px;
    line-height: 1.55;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links li a {
    color: #A39E96;
    font-size: 13px;
}

.footer-links li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid #282624;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #7A756E;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .category-silos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-nav,
    .header-cta-btn {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .category-silos-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .hero-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 10px !important;
        max-width: 280px !important;
        margin: 14px auto 0 auto !important;
    }
    
    .aeo-highlights-strip {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}