:root{
    --cream:#f5f0e8;
    --surface:#fffdf9;
    --ink:#202728;
    --muted:#687171;
    --teal:#1d7775;
    --navy:#183340;
    --terracotta:#c56d52;
    --line:#ddd7cc;
    --shadow:0 18px 50px rgba(24,51,64,.1)}
*{
    box-sizing:border-box}
body{
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'DM Sans',sans-serif;
    line-height:1.6}
body.dark-theme{
    --cream:#202728;
    --surface:#293538;
    --ink:#f4ecdd;
    --muted:#b9c0bb;
    --line:#465456;
    --navy:#a9d0cb;
    --shadow:0 18px 50px rgba(0,0,0,.25)}
a{
    color:inherit;
    text-decoration:none}
button,input,select,textarea{
    font:inherit}
button{
    cursor:pointer}
.site-header{
    height:76px;
    padding:0 5vw;
    display:flex;
    align-items:center;
    gap:28px;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:5}
.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    font-size:1.05rem}
.brand small{
    display:block;
    font-size:.65rem;
    color:var(--muted);
    font-weight:500;
    letter-spacing:.04em}
.brand-mark{
    display:grid;
    place-items:center;
    background:var(--teal);
    color:#fff;
    width:34px;
    height:34px;
    border-radius:50%;
    font-family:Georgia,serif;
    font-size:1.2rem}
.main-nav{
    display:flex;
    gap:24px;
    margin-left:auto;
    align-items:center;
    font-size:.88rem}
.main-nav a:hover{
    color:var(--teal)}
.button-link{
    background:var(--navy);
    color:#fff;
    border-radius:4px;
    padding:10px 16px}
.button-link.small{
    padding:7px 12px}
.header-tools{
    display:flex;
    gap:6px}
.text-control,.icon-button,.menu-toggle{
    background:none;
    border:0;
    color:var(--ink);
    padding:7px}
.menu-toggle{
    display:none;
    font-size:1.4rem}
.page-wrap{
    min-height:calc(100vh - 76px)}
.hero{
    min-height:640px;
    position:relative;
    display:flex;
    align-items:flex-end;
    padding:7vw 8vw;
    background:var(--navy);
    color:#fff;
    overflow:hidden}
.hero:before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(14,33,39,.85),rgba(14,33,39,.18)),url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85') center/cover}
.hero-content{
    position:relative;
    max-width:650px}
.eyebrow{
    font-size:.72rem;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--terracotta);
    font-weight:700}
.hero h1,h1,h2{
    font-family:'Playfair Display',serif;
    line-height:1.12}
.hero h1{
    font-size:clamp(2.7rem,6vw,5.4rem);
    margin:18px 0}
.hero p{
    font-size:1.1rem;
    max-width:570px;
    color:#e6e5dc}
.actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px}
.primary,.secondary{
    border:0;
    border-radius:4px;
    padding:13px 20px;
    font-weight:700;
    display:inline-block}
.primary{
    background:var(--terracotta);
    color:#fff}
.secondary{
    background:transparent;
    border:1px solid currentColor;
    color:inherit}
.section,.page{
    max-width:1180px;
    margin:auto;
    padding:90px 5vw}
.section-heading{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:28px}
.section h2,.page h1{
    font-size:clamp(2rem,4vw,3.6rem);
    margin:10px 0}
.lede{
    color:var(--muted);
    max-width:640px}
.featured{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7vw;
    align-items:center}
.featured img{
    width:100%;
    height:430px;
    object-fit:cover}
.specs{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    color:var(--muted);
    font-size:.9rem;
    margin:22px 0}
.stat-row{
    display:grid;
    grid-template-columns:2fr repeat(3,1fr);
    gap:1px;
    background:var(--line);
    margin-top:30px}
.stat{
    background:var(--surface);
    padding:30px}
.stat strong{
    font-family:'Playfair Display';
    font-size:2.3rem;
    display:block;
    color:var(--teal)}
.steps-grid,.catalog-grid,.team-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px}
.step,.home-card,.team-card,.panel{
    background:var(--surface);
    border:1px solid var(--line);
    padding:22px}
.step span{
    color:var(--terracotta);
    font-weight:700}
.step b{
    display:block;
    margin-top:25px}
.ar-band{
    background:var(--navy);
    color:#fff;
    max-width:none;
    padding-left:calc((100% - 1080px)/2);
    padding-right:calc((100% - 1080px)/2)}
.catalog-grid{
    grid-template-columns:repeat(2,1fr)}
.home-card{
    padding:0;
    overflow:hidden}
.home-card img{
    width:100%;
    height:250px;
    object-fit:cover}
.card-body{
    padding:22px}
.card-top{
    display:flex;
    justify-content:space-between;
    color:var(--terracotta)}
.card-top button{
    background:none;
    border:0;
    color:var(--terracotta);
    font-size:1.4rem}
.card-actions{
    display:flex;
    justify-content:space-between;
    align-items:center}
.text-button{
    border:0;
    background:none;
    color:var(--teal);
    font-weight:700;
    padding:0}
.detail-grid,.contact-grid,.calculator-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:7vw;
    align-items:start}
.detail-image{
    width:100%;
    height:520px;
    object-fit:cover}
.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:25px}
.form-card,.estimate-card{
    background:var(--surface);
    padding:30px;
    border:1px solid var(--line)}
label{
    display:block;
    font-weight:600;
    margin:16px 0}
input,select,textarea{
    width:100%;
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--ink);
    padding:11px 12px;
    margin-top:7px;
    border-radius:3px}
textarea{
    min-height:130px;
    resize:vertical}
.calculator-form{
    display:grid;
    gap:8px}
.upgrade-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px}
.check-label{
    font-weight:400;
    border:1px solid var(--line);
    padding:10px;
    font-size:.9rem}
.check-label input{
    width:auto;
    margin:0 6px 0 0}
.total{
    font-size:2.25rem;
    color:var(--teal);
    font-family:'Playfair Display';
    line-height:1.1}
.breakdown{
    border-top:1px solid var(--line);
    margin-top:22px}
.breakdown div{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid var(--line);
    font-size:.9rem}
.ar-preview{
    background:#dbe6df;
    min-height:450px;
    display:grid;
    place-items:center;
    position:relative;
    overflow:hidden}
.mock-model{
    width:210px;
    height:150px;
    background:linear-gradient(135deg,#c7775b 50%,#f2ead9 50%);
    transform:perspective(600px) rotateY(-18deg);
    box-shadow:0 25px 35px #73847b;
    border-bottom:18px solid #a1aca2}
.ar-controls{
    position:absolute;
    bottom:18px;
    display:flex;
    gap:8px}
.ar-controls button{
    border:0;
    background:var(--surface);
    padding:9px 13px}
.target{
    border:3px solid var(--teal);
    width:200px;
    height:200px;
    display:grid;
    place-items:center;
    text-align:center;
    color:var(--teal);
    font-weight:700}
.map{
    min-height:260px;
    background:repeating-linear-gradient(45deg,#dce3da,#dce3da 10px,#d3ddd5 10px,#d3ddd5 20px);
    display:grid;
    place-items:center;
    text-align:center;
    color:var(--navy);
    margin-top:24px}
.flash{
    max-width:1180px;
    margin:18px auto 0;
    padding:13px 18px;
    background:var(--surface);
    border-left:4px solid var(--teal)}
.flash.error{
    border-color:var(--terracotta)}
.muted,small{
    color:var(--muted)}
.site-footer{
    background:var(--navy);
    color:#edf0e9;
    padding:52px 8vw;
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px}
.site-footer p{
    color:#c8d1cc;
    font-size:.9rem}
.site-footer .brand small{
    color:#c8d1cc}
.table-wrap{
    overflow:auto}
.data-table{
    width:100%;
    border-collapse:collapse;
    background:var(--surface)}
.data-table th,.data-table td{
    text-align:left;
    padding:13px;
    border-bottom:1px solid var(--line);
    white-space:nowrap}
.admin-nav{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:20px 0}
.admin-nav a{
    padding:8px 12px;
    background:var(--surface);
    border:1px solid var(--line)}
@media(max-width:760px){
    .site-header{
        padding:0 20px}
    .menu-toggle{
        display:block;
        margin-left:auto}
    .main-nav{
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:76px;
        background:var(--surface);
        padding:18px 20px;
        flex-direction:column;
        align-items:stretch}
    .main-nav.open{
        display:flex}
    .header-tools{
        order:2}
    .hero{
        min-height:600px;
        padding:40px 24px}
    .hero h1{
        font-size:2.7rem}
    .section,.page{
        padding:60px 22px}
    .featured,.detail-grid,.contact-grid,.calculator-grid{
        grid-template-columns:1fr}
    .featured img,.detail-image{
        height:300px}
    .steps-grid,.team-grid{
        grid-template-columns:repeat(2,1fr)}
    .catalog-grid,.stat-row{
        grid-template-columns:1fr}
    .ar-band{
        padding-left:22px;
        padding-right:22px}
    .site-footer{
        grid-template-columns:1fr;
        padding:40px 22px}
    .section-heading{
        display:block}
}
/* Responsive layout and accessible controls. */
.auth-card{
    max-width: 600px;
    margin: auto;
}
.site-header button{
    border: 0;
}
.site-header form{
    margin: 0;
}
.primary{
    background: var(--teal);
}
.site-footer, .ar-band{
    background: #183340;
}
.button-link{
    background: #183340;
}
.dark-theme{
    --teal: #83d3c9;
    --terracotta: #edaa91;
}
.dark-theme .primary{
    background: #236c68;
    color: #fff;
}
.dark-theme .brand-mark{
    background: #236c68;
}
:focus-visible{
    outline: 3px solid var(--terracotta);
    outline-offset: 4px;
}
button, .primary, .secondary, .text-control, .icon-button{
    min-height: 44px;
}
.page > *, .detail-grid > *, .contact-grid > *, .calculator-grid > *{
    min-width: 0;
}
.map{
    width: 100%;
    border: 0;
    border-radius: 8px;
}
.panel, .home-card, .form-card, .estimate-card, .team-card{
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.panel + .panel{
    margin-top: 16px;
}
.team-grid{
    grid-template-columns: repeat(3, 1fr);
}
.team-photo{
    display: grid;
    place-items: center;
    min-height: 140px;
    background: var(--cream);
    color: var(--muted);
}
.compare-table td{
    white-space: normal;
    min-width: 200px;
}
.compare-table th:first-child{
    position: sticky;
    left: 0;
    background: var(--surface);
}
.compare-image{
    width: 180px;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.data-table td{
    max-width: 360px;
    overflow-wrap: anywhere;
    white-space: normal;
    min-width: 100px;
}
caption{
    text-align: left;
    font-weight: 700;
    margin-bottom: 16px;
}
.bar-chart > div{
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    gap: 12px;
    align-items: center;
    margin: 14px 0;
}
.bar-chart meter{
    width: 100%;
    height: 28px;
    accent-color: var(--teal);
}
.ar-preview{
    min-height: 530px;
    border-radius: 10px;
    padding-bottom: 80px;
    color: #183340;
}
.target{
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 20px;
}
.mock-model{
    position: relative;
    transition: transform .25s;
}
.hotspot{
    position: absolute;
    padding: 3px 5px;
    font: 600 9px sans-serif;
    background: #183340;
    color: white;
    border-radius: 3px;
}
.roof{
    top: 0;
    left: 15px;
}
.vent{
    top: 50px;
    right: 5px;
}
.timber{
    bottom: 10px;
    left: 5px;
}
.spaces{
    top: 85px;
    right: 0;
}
.model-name{
    position: absolute;
    top: -35px;
    width: 100%;
    text-align: center;
    font-weight: 700;
}
.hide-labels .hotspot{
    display: none;
}
.ar-controls{
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 8px;
}
.ar-controls button{
    color: var(--ink);
    border-radius: 4px;
}
@media (max-width: 1100px){
    .site-header{
        gap: 12px;
        padding: 0 20px;
    }
    .main-nav{
        gap: 14px;
    }
    .detail-grid, .contact-grid, .calculator-grid{
        gap: 30px;
    }
    .ar-band{
        padding-left: 5vw;
        padding-right: 5vw;
    }
}
@media (max-width: 900px){
    .menu-toggle{
        display: block;
        margin-left: auto;
    }
    .main-nav{
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .main-nav.open{
        display: flex;
    }
    .header-tools{
        order: 2;
    }
    .detail-grid, .contact-grid, .calculator-grid{
        grid-template-columns: 1fr;
    }
    .steps-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px){
    .team-grid{
        grid-template-columns: 1fr;
    }
    .form-card, .estimate-card{
        padding: 20px;
    }
    .upgrade-grid{
        grid-template-columns: 1fr;
    }
    .total{
        font-size: 1.9rem;
    }
    .site-header{
        padding: 0 12px;
        gap: 6px;
    }
    .ar-controls{
        bottom: 8px;
    }
    .ar-preview{
        min-height: 570px;
    }
    .stat{
        padding: 22px;
    }
}
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
.concept-house{
    width: 100%;
    height: 100%;
}
.ar-preview .mock-model:has(.concept-house){
    width: 270px;
    height: 200px;
    background: none;
    border: 0;
    box-shadow: none;
}
.ar-preview .mock-model:has(.concept-house) .roof{
    top: 20px;
}
.ar-preview .mock-model:has(.concept-house) .vent{
    top: 95px;
}
.ar-preview .mock-model:has(.concept-house) .spaces{
    top: 145px;
}
.ar-preview .mock-model:has(.concept-house) .timber{
    bottom: 5px;
}
.compare-table th:first-child { min-width: 130px; max-width: 145px; white-space: normal; z-index: 1; }
.reference-note { font-size: .8rem; }
meter::-webkit-meter-optimum-value { background: #1d7775; }
meter::-moz-meter-bar { background: #1d7775; }
