/* =============================================
   Simply Home — Interior Lookbook Visual System
   ============================================= */

:root {
    --primary:       #3f5147;
    --primary-dk:    #2f3d36;
    --primary-lt:    #527060;
    --terracotta:    #b4775d;
    --terra-pale:    #f5ece7;
    --terra-mid:     #ddb8a4;
    --sage:          #899b84;
    --sage-pale:     #eaefea;
    --sage-mid:      #c0cebb;
    --dusty-blue:    #8197a3;
    --blue-pale:     #e8eef2;
    --sand:          #d8c7ac;
    --sand-pale:     #f5f0e8;
    --ivory:         #f8f5ee;
    --surface:       #ffffff;
    --surface-soft:  #f0ede6;
    --text-dark:     #292d2b;
    --text-body:     #383d3a;
    --text-muted:    #6b716e;
    --border:        #dddcd6;
    --border-dk:     #c8c5bc;
    --warning:       #815848;
    --warn-pale:     #f7eeea;
    --shadow:        0 2px 12px rgba(41,45,43,0.07);
    --radius:        6px;
    --radius-lg:     12px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
    background: var(--ivory);
    color: var(--text-body);
    font-family: system-ui, -apple-system, 'Segoe UI', Georgia, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}
section[id], article[id] { scroll-margin-top: 95px; }

h1,h2,h3,h4,h5,h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.22rem); }
a  { color: var(--primary); }
a:hover { color: var(--primary-lt); }

/* ---- Navbar ---- */
.site-nav {
    background: var(--surface);
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1040;
}
.site-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary) !important;
    letter-spacing: -0.03em;
}
.site-nav .navbar-brand .tagline {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    line-height: 1;
}
.site-nav .nav-link {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.3rem 0.55rem !important;
    border-radius: var(--radius);
    transition: background 0.13s;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active {
    background: var(--sage-pale);
    color: var(--primary) !important;
}
.site-nav .nav-link.active { font-weight: 700; }
.site-nav .dropdown-menu { border: 1.5px solid var(--border); border-radius: var(--radius); }
.site-nav .dropdown-item { font-size: 0.83rem; }

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    padding: 0.3rem 0;
    font-size: 0.77rem;
}
.breadcrumb-bar .breadcrumb { margin:0; background:none; padding:0; }
.breadcrumb-item a { color: var(--primary); text-decoration:none; font-weight:500; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---- Hero ---- */
.hero-section {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 3rem 0 2.2rem;
}

/* ---- Room Nav Strip ---- */
.room-strip {
    background: var(--primary);
    padding: 0.5rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.room-strip::-webkit-scrollbar { display:none; }
.room-strip .container { display:flex; gap:0.35rem; }
.room-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.28rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.13s;
}
.room-tab:hover, .room-tab.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

/* ---- CSS Room Diagram ---- */
.room-diagram {
    background: var(--surface-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    position: relative;
    min-height: 220px;
}
.room-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.3rem;
}
.furniture-block {
    background: var(--sand);
    border: 1.5px solid var(--border-dk);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}
.furniture-block.sofa     { background: #c8bfb0; }
.furniture-block.rug      { background: var(--terra-pale); border-style: dashed; }
.furniture-block.table    { background: #d8cfc0; }
.furniture-block.lamp     { background: var(--sand-pale); border-radius: 50%; }
.furniture-block.storage  { background: var(--sage-pale); }
.furniture-block.path     { background: transparent; border: 1.5px dashed var(--border-dk); }

/* ---- Room Diagram Grid ---- */
.diagram-grid {
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
}

/* ---- Section ---- */
.room-section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.3rem;
    box-shadow: var(--shadow);
    position: relative;
}
.room-section::before {
    content: '';
    display: block;
    width: 4px;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
    position: absolute;
    top: 0; left: 0; bottom: 0;
}
.room-section.terra::before { background: var(--terracotta); }
.room-section.sage::before  { background: var(--sage); }
.room-section.blue::before  { background: var(--dusty-blue); }
.room-section.alt { background: var(--surface-soft); }

/* ---- Callout boxes ---- */
.callout {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 0.65rem 0;
    border-left: 4px solid;
    font-size: 0.88rem;
}
.callout-try     { background: var(--sage-pale);  border-color: var(--sage); }
.callout-mistake { background: var(--warn-pale);   border-color: var(--warning); }
.callout-note    { background: var(--surface-soft);border-color: var(--border-dk); }
.callout-terra   { background: var(--terra-pale);  border-color: var(--terracotta); }
.callout-blue    { background: var(--blue-pale);   border-color: var(--dusty-blue); }
.callout-budget  { background: var(--sand-pale);   border-color: var(--sand); }
.callout-safety  { background: var(--warn-pale);   border-color: var(--warning); }

.callout h5, .callout h6 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
.callout-try     h5,.callout-try     h6 { color: var(--primary); }
.callout-mistake h5,.callout-mistake h6 { color: var(--warning); }
.callout-terra   h5,.callout-terra   h6 { color: #8a4020; }
.callout-blue    h5,.callout-blue    h6 { color: #2a5060; }
.callout-budget  h5,.callout-budget  h6 { color: #7a5820; }
.callout-safety  h5,.callout-safety  h6 { color: var(--warning); }

/* ---- Budget label ---- */
.budget-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid;
}
.bp-free   { background:#e8f0e8; color:#1a4020; border-color:#90c898; }
.bp-low    { background:var(--sage-pale); color:#2a4030; border-color:var(--sage-mid); }
.bp-medium { background:var(--sand-pale); color:#6a4810; border-color:var(--sand); }
.bp-higher { background:var(--terra-pale); color:#7a3010; border-color:var(--terra-mid); }

/* ---- Category pills ---- */
.cat-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid;
}
.cp-furniture { background:var(--surface-soft); color:#3a3028; border-color:var(--border-dk); }
.cp-colour    { background:#fff0e8; color:#7a3820; border-color:#e8b898; }
.cp-lighting  { background:#fff8e0; color:#6a4808; border-color:#e8d090; }
.cp-walls     { background:var(--blue-pale); color:#2a4858; border-color:#a8c0d0; }
.cp-textiles  { background:var(--terra-pale); color:#7a3020; border-color:var(--terra-mid); }
.cp-shelves   { background:var(--sage-pale); color:#2a4030; border-color:var(--sage-mid); }
.cp-accessories { background:var(--sand-pale); color:#5a4020; border-color:var(--sand); }
.cp-layout    { background:#e8e0f0; color:#3a2868; border-color:#b8a8d8; }
.cp-smallspaces { background:#e0f0f0; color:#0a4848; border-color:#98c8c8; }
.cp-budgetdecor { background:#e8f0e8; color:#1a4020; border-color:#90c898; }
.cp-default   { background:var(--surface-soft); color:var(--text-muted); border-color:var(--border); }

/* ---- Filter bar ---- */
.filter-bar {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0;
    position: sticky;
    top: 61px;
    z-index: 900;
    box-shadow: 0 2px 6px rgba(41,45,43,0.05);
}
.filter-chips {
    display: flex;
    gap: 0.28rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display:none; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.13s;
}
.filter-chip:hover, .filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Colour swatches ---- */
.palette-strip {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    margin: 0.75rem 0;
}
.swatch {
    flex: 1;
    padding: 1.2rem 0.5rem 0.5rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.3;
}

/* ---- Zone map ---- */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 0.75rem 0;
}
.zone-cell {
    background: var(--surface-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem 0.6rem;
    text-align: center;
}
.zone-cell .zone-icon { font-size: 1.3rem; display:block; margin-bottom:0.3rem; }
.zone-cell .zone-name { font-size: 0.75rem; font-weight: 700; color: var(--primary); display:block; }
.zone-cell .zone-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; display:block; margin-top:0.15rem; }
@media(max-width:576px) { .zone-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- Steps / Process flow ---- */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.process-step .step-marker {
    min-width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ---- Flow visual ---- */
.flow-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.flow-box {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.55rem 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    min-width: 200px;
}
.flow-arrow {
    font-size: 1rem;
    color: var(--sage);
    margin: 0.1rem 0;
    line-height: 1;
}

/* ---- Checklist ---- */
.check-list { list-style:none; padding:0; margin:0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.24rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li .bi { color: var(--sage); margin-top: 0.13rem; flex-shrink:0; }
.check-list li .bi.warn { color: var(--warning); }

/* ---- Section eyebrow ---- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.18rem;
}
.section-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.section-rule h2 { margin:0; }
.section-rule::after { content:''; flex:1; height:1px; background:var(--border); }

/* ---- Idea entry ---- */
.idea-entry.hidden { display:none; }

/* ---- Room guide tab ---- */
.guide-tab-nav {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1rem;
}
.guide-tab-nav::-webkit-scrollbar { display:none; }
.guide-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.13s;
    flex-shrink: 0;
}
.guide-tab:hover, .guide-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Room guide checklist grid ---- */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}
@media(max-width:576px) { .checklist-grid { grid-template-columns: 1fr; } }

/* ---- Budget priority ladder ---- */
.budget-ladder { display: flex; flex-direction: column; gap: 0; }
.ladder-rung {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    margin-bottom: -1px;
    font-size: 0.87rem;
}
.ladder-rung:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.ladder-rung:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.ladder-rung .rung-level {
    min-width: 5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ladder-rung.l-free   { background: #f0f8f0; }
.ladder-rung.l-low    { background: var(--sage-pale); }
.ladder-rung.l-med    { background: var(--sand-pale); }
.ladder-rung.l-high   { background: var(--terra-pale); }

/* ---- Work zone map ---- */
.work-zone {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0.75rem 0;
}
.work-zone-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.work-zone-row:last-child { border-bottom: none; }
.work-zone-label {
    min-width: 130px;
    padding: 0.65rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--surface);
    background: var(--primary);
    border-right: 1px solid var(--border);
    line-height: 1.35;
}
.work-zone-label small { display:block; font-weight:400; opacity:0.8; }
.work-zone-content {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    background: var(--surface-soft);
}

/* ---- Notice / Safety ---- */
.notice-bar {
    background: var(--warn-pale);
    border: 1.5px solid #d4b8a8;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #5a3028;
}
.notice-bar a { color: #7c4030; font-weight:600; }

/* ---- Ad placeholder ---- */
.ad-placeholder {
    background: var(--surface-soft);
    border: 1px dashed var(--border-dk);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.71rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- About card ---- */
.about-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
}

/* ---- Measurement note ---- */
.measure-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem 0.65rem;
    margin: 0.4rem 0;
}

/* ---- Search ---- */
.search-wrap { position:relative; max-width:260px; }
.search-wrap .bi { position:absolute; left:0.7rem; top:50%; transform:translateY(-50%); color:var(--text-muted); pointer-events:none; }
#ideaSearch { padding-left:2.1rem; border-radius:20px; border:1.5px solid var(--border); background:var(--surface-soft); font-size:0.84rem; }

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dk);
    color: #8aaa96;
    padding: 2.6rem 0 1.2rem;
    margin-top: 3.5rem;
    border-top: 4px solid var(--terracotta);
}
.site-footer h5 {
    color:#fff;
    font-size:0.76rem;
    text-transform:uppercase;
    letter-spacing:0.08em;
    font-weight:700;
    margin-bottom:0.75rem;
}
.site-footer a {
    color: #8aaa96;
    text-decoration:none;
    font-size:0.83rem;
    display:block;
    padding:0.1rem 0;
    transition: color 0.13s;
}
.site-footer a:hover { color:#fff; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.85rem;
    margin-top: 1.5rem;
    font-size: 0.73rem;
    color: #4a6a56;
}

/* ---- Back to top ---- */
#backToTop {
    position: fixed;
    bottom: 1.4rem; right: 1.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.4rem; height: 2.4rem;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: var(--shadow);
    transition: background 0.13s;
}
#backToTop:hover { background: var(--terracotta); }
#backToTop.visible { display:flex; }

/* ---- Policy pages ---- */
.policy-section { padding:1.1rem 0; border-bottom:1px solid var(--border); }
.policy-section:last-child { border-bottom:none; }

/* ---- Small room hero example ---- */
.room-hero-example {
    background: var(--surface-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.room-hero-example::before {
    content:'EXAMPLE — ILLUSTRATIVE ONLY';
    position:absolute;
    top:0.4rem; right:0.5rem;
    font-size:0.58rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--text-muted);
}

/* ---- Print ---- */
@media print {
    .site-nav, .filter-bar, .room-strip, .site-footer,
    #backToTop, .ad-placeholder, .no-print { display:none !important; }
    body { background:#fff; font-size:11pt; }
    .room-section { box-shadow:none; border:1px solid #ccc; }
    .room-section::before { display:none; }
    a { color:#000; }
}

/* ---- Responsive ---- */
@media (max-width:767px) {
    .hero-section { padding:1.8rem 0 1.3rem; }
    .zone-grid { gap:0.35rem; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--terracotta); outline-offset:2px; border-radius:3px; }
