/* Homepage presentation. Estimator controls and other applications retain their contracts. */
@font-face { font-family: 'Anuphan Display'; src: url('../assets/fonts/Anuphan-NPTBold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.home-page {
  --c-bg: #f8f7f4; --c-bg2: #f0f2ee; --c-bg3: #e8ede7;
  --c-card: #ffffff; --c-card2: #f5f6f2;
  --c-border: #dde2d9; --c-border2: #b8c3b4;
  --c-text: #202d27; --c-text2: #526157; --c-text3: #5d6b60;
  --c-orange: #a94e17; --c-orange-lt: #873b10; --c-orange-dk: #78350f;
  --c-orange-dim: #a94e1710; --c-orange-glow: #a94e1720;
  --r-2xl: 22px;
}
.home-page .wrap { max-width: 1264px; padding-inline: 40px; }
.home-page section { padding-block: 96px; }
.home-page h2.title { font-family: 'Anuphan Display', var(--font-body); font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.4; letter-spacing: -.035em; }
.home-page .tag { font-family: var(--font-body); font-size: .82rem; letter-spacing: .07em; margin-bottom: 12px; }
.home-page .btn { min-height: 46px; border-radius: 9px; line-height: 1.4; }
.home-page .btn-primary { color: #fff; box-shadow: inset 0 1px 0 #ffffff30; }
.home-page .btn-primary:hover { box-shadow: 0 6px 22px #a94e1720; }
.home-page #navbar { background: #f8f7f4ed; height: 76px; border-color: var(--c-border); }
.home-page #navbar.is-scrolled { background: #f8f7f4fa; box-shadow: 0 2px 14px #283f260a; }
.home-page .nav-inner { gap: 24px; }
.home-page .nav-brand .line1, .home-page .nav-brand .line2 { display: block; }
.home-page .nav-brand .line1 { font-size: 1.2rem; }
.home-page .nav-brand .line2 { font-size: .58rem; letter-spacing: .12em; margin-top: 4px; }
.home-page .nav-links { gap: clamp(16px, 2vw, 28px); }
.home-page .nav-links a { white-space: nowrap; font-size: .9rem; }
.home-page .nav-logo img { height: 42px; }
.home-page #mobile-menu { top: 76px; background: #f0f2ee; }
.home-page #home { padding: 76px 0 0; min-height: auto; }
.home-page .hero-content { grid-template-columns: 1.08fr 1fr; gap: 48px; padding: 82px 0 66px; }
.home-page .hero-bg-grad { background: radial-gradient(ellipse at 78% 42%, #a66d3220, transparent 55%); }
.home-page .hero-grid-lines { opacity: .3; background-size: 80px 80px; }
.home-page .hero-text { text-align: left; }
.home-page .hero-text .hero-eyebrow { background: none; border: 0; padding: 0; font: 500 .66rem var(--font-mono); color: #526157; letter-spacing: .09em; margin-bottom: 25px; }
.home-page .hero-dot { background: #368252; width: 6px; height: 6px; animation: none; margin-right: 3px; }
.home-page .hero-h1 { font: 700 clamp(2.7rem, 4.1vw, 3.55rem)/1.4 'Anuphan Display', var(--font-body); letter-spacing: -.055em; margin-bottom: 20px; }
.home-page .hero-desc { max-width: 490px; font-size: 1rem; line-height: 1.9; margin-bottom: 28px; }
.home-page .hero-desc strong { color: var(--c-text); font-weight: 500; }
.home-page .hero-btns { gap: 12px; flex-wrap: nowrap; justify-content: flex-start; }
.home-page .hero-btns .btn { padding: 14px 19px; font-size: .95rem; white-space: nowrap; }
.home-page .hero-btns .btn-ghost { background: #ffffff03; }
.home-page .hero-stats { margin-top: 32px; padding-top: 22px; gap: 0; justify-content: flex-start; }
.home-page .hstat { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--c-border); }
.home-page .hstat:last-child { border: 0; margin: 0; padding: 0; }
.home-page .hstat strong { color: var(--c-text); font: 600 1.05rem var(--font-body); margin-bottom: 3px; }
.home-page .hstat span { font: .78rem var(--font-body); letter-spacing: 0; }
.home-page .hero-visual { order: 0; min-width: 0; }
.brand-showcase { width: 100%; min-height: 520px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; padding: 28px 20px; }
.brand-halo { position: absolute; z-index: -1; width: 98%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, #f3871326 0%, #c56a1710 45%, transparent 70%); border: 1px solid #f7a25b15; }
.brand-halo::before { content: ''; position: absolute; inset: 8%; border: 1px solid #f7a25b20; border-radius: 50%; }
.brand-halo::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid #f7a25b12; }
.brand-location { color: #6d604d; font: .58rem var(--font-mono); letter-spacing: .2em; margin-bottom: 26px; }
.brand-hero-logo { width: min(68%, 330px); height: auto; object-fit: contain; filter: drop-shadow(0 14px 32px #fb831326); }
.brand-showcase figcaption { text-align: center; margin-top: 25px; padding-top: 18px; border-top: 1px solid #d9ad6a30; width: 78%; }
.brand-showcase figcaption span { display: block; color: #72624c; font: .62rem var(--font-mono); letter-spacing: .19em; margin-bottom: 7px; }
.brand-showcase figcaption strong { font-size: 1rem; font-weight: 400; color: #384236; }
.home-page .badge-strip { background: #ffffff; }
.home-page .badge-strip-inner { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); animation: none; gap: 20px; padding-block: 20px; }
.home-page .badge-strip-inner span { display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; font: .77rem var(--font-body); letter-spacing: 0; color: #526157; white-space: normal; }
.home-page .badge-strip-inner img { filter: invert(.3) sepia(.2); width: 19px; height: 19px; margin-right: 5px; }
.home-page .badge-strip-inner b { font-weight: 500; color: #273b2d; }
.home-page .live-stats { background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.home-page .live-stats-inner { padding-block: 18px; }
.home-page .live-stat strong { color: #2e4835; font-size: 1.4rem; }
.home-page #estimate { background: #edf1eb; }
.home-page .estimate-layout { grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); gap: 28px; margin-top: 36px; }
.home-page .estimate-layout > div { min-width: 0; }
.workspace-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.workspace-heading h3 { font-size: 1.05rem; font-weight: 600; }
.workspace-heading p { color: var(--c-text2); font-size: .82rem; margin-top: 2px; }
.step-index { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #becbb7; border-radius: 9px; color: #405537; font: .8rem var(--font-mono); flex-shrink: 0; }
.home-page .estimate-workspace { border: 1px solid var(--c-border); border-radius: 20px; background: #ffffff; padding: 26px; }
.home-page .upload-area { border: 1px dashed #a3ae90; border-radius: 12px; padding: 28px 20px; background: #f4f6ee; }
.home-page .upload-area:hover, .home-page .upload-area.dragover { background: #ebf0e0; border-color: #873b10; }
.home-page .upload-area.has-file { background: #f4f6ee; border-color: #88965f; }
.home-page .upload-icon-wrap { width: 50px; height: 50px; border-radius: 12px; background: #f4e4d0; margin-bottom: 12px; }
.home-page .upload-icon-wrap svg { width: 24px; height: 24px; stroke: #9c571f; }
.home-page .upload-title { font-size: 1rem; }
.upload-choose { display: inline-flex; gap: 18px; padding: 9px 17px; margin: 10px 0 12px; border-radius: 7px; background: #344c32; color: #ffffff; font-size: .88rem; font-weight: 600; }
.home-page .upload-hint { font-size: .8rem; }
.home-page .upload-formats { gap: 6px; margin-top: 16px; }
.home-page .fmt { border-radius: 5px; font-size: .6rem; background: #ffffffaa; border-color: #c1c9b2; padding: 3px 8px; }
.home-page .config-block { gap: 20px; margin-top: 26px; }
.home-page .config-block .workspace-heading { border-top: 1px solid var(--c-border); padding-top: 24px; margin-bottom: 0; }
.home-page .material-summary { font-size: .83rem; }
.home-page .material-summary strong { background: #eaf1e5; border-color: #bccfb0; color: #3a562e; font-size: .78rem; }
.home-page .field select { background-color: #ffffff; border-color: #b8c3b4; min-height: 48px; border-radius: 9px; }
.home-page .config-block .field-help { margin-top: .75rem; color: var(--c-text2); font-size: .8rem; line-height: 1.65; }
.home-page #supportHelp { font-size: .85rem; line-height: 1.85; }
.home-page .qty-btn { background: #eef2e9; }
.home-page .estimate-details { border-radius: 10px; background: #f8f9f5; }
.home-page .advanced-settings summary { font-size: .9rem; }
.home-page .advanced-settings summary span { font-size: .8rem; }
.home-page .result-panel { border-radius: 20px; background: #ffffff; border-color: #cbd5c4; }
.home-page .result-header { padding: 25px 26px; background: #f4f6ee; border-bottom: 1px solid #cbd5c4; }
.home-page .result-header .tag { margin-bottom: 5px; font-size: .73rem; color: #526348; }
.home-page .result-header h3 { font: 700 1.2rem/1.5 'Anuphan Display',var(--font-body); }
.home-page .empty-state { padding: 42px 30px; }
.home-page .empty-icon { width: 64px; height: 64px; background: #ecf2e5; border: 1px solid #c2d2b7; border-radius: 16px; margin-bottom: 21px; }
.home-page .empty-icon svg { stroke: #597148; opacity: 1; }
.empty-state h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; color: var(--c-text); }
.home-page .empty-state p { font-size: .9rem; }
.empty-benefits { display: grid; gap: 12px; text-align: left; margin: 28px auto; max-width: 270px; font-size: .88rem; color: #4a6040; }
.empty-benefits span::before { content: '✓'; color: #426e36; margin-right: 12px; }
.home-page .empty-state .empty-footnote { border-top: 1px solid var(--c-border); padding-top: 23px; font-size: .78rem; }
.home-page .price-box { margin: 22px; padding: 24px; text-align: left; background: #f4f6ee; border: 1px solid #ced8c2; border-radius: 12px; }
.home-page .price-label { color: #536448; font: .85rem var(--font-body); letter-spacing: 0; }
.home-page .quote-basis { font-size: .8rem; display: inline-block; border-radius: 5px; background: #fff9ed; padding: 4px 8px; margin: 7px 0 14px; }
.home-page .price-big { color: #944414; font-size: 3.8rem; font-weight: 700; line-height: 1.2; }
.home-page .print-time-summary { border-color: #ced8c266; padding: 18px 0; margin: 18px 0; }
.home-page .print-time-label { color: #536448; font-size: .9rem; font-weight: 400; }
.home-page .print-time-value { font-size: 1.55rem; font-family: 'Anuphan Display',var(--font-body); margin: 6px 0 9px; }
.home-page .print-time-support { color: #326528; font-size: .85rem; }
.home-page .print-time-note { color: #7b591b; font-size: .8rem; line-height: 1.8; }
.home-page .price-note { font-size: .8rem; }
.home-page .support-summary { background: #edf4e7; border: 1px solid #c5d9b7; font-size: .85rem; }
.home-page .fit-banner { font-size: .85rem; }
.home-page .service-card { background: #ffffff; border-radius: 14px; padding: 28px; box-shadow: none; }
.home-page .service-card:hover { border-color: #a68a62; transform: translateY(-3px); }
.home-page .svc-icon { background: #edf2e6; border: 1px solid #ccdac0; border-radius: 12px; }
.home-page .svc-icon img, .home-page .project-icon img { filter: invert(.3) sepia(.3); }
.home-page .svc-title { font-size: 1.25rem; }
.home-page .svc-desc { font-size: .95rem; line-height: 1.9; }
.home-page .project-card { border-radius: 12px; background: #ffffff; }
.home-page .project-num { color: #586448; }
.home-page .project-icon { font-size: 1.8rem; }
.home-page .project-showcase { margin-top: 64px; }
.home-page .step-card { border-top: 1px solid #cad6bf; padding-top: 24px; }
.home-page .step-num { background: #e9f0e1; color: #4b663b; border-color: #c0d1b1; }
.home-page .machine-spec { background: #f0f4e9; border-color: #c5d4b8; border-radius: 16px; }
.home-page .faq-item { border-color: #d5dece; }
.home-page .faq-q { line-height: 1.7; padding-block: 22px; }
.home-page .contact-card { border-radius: 16px; }
.home-page footer { border-top: 1px solid #d5dece; }
.home-page :where(section[id],#resultPanel) { scroll-margin-top: 96px; }
/* Light surfaces need darker status text; the model canvas has its own contrast. */
.home-page { color-scheme: light; --shadow: 0 8px 28px #283f2610; }
.home-page .hero-grid-lines { background-image: linear-gradient(#53644d12 1px, transparent 1px), linear-gradient(90deg, #53644d12 1px, transparent 1px); }
.home-page .estimate-workspace, .home-page .result-panel { box-shadow: var(--shadow); }
.home-page .quote-basis, .home-page .slice-status[data-state="failed"], .home-page .fit-banner[data-state="warn"] { color: #795400; }
.home-page .quote-basis[data-state="confirmed"], .home-page .slice-status[data-state="done"], .home-page .fit-banner[data-state="ok"], .home-page .support-preview-note { color: #28623c; }
.home-page .fit-banner[data-state="bad"] { color: #ab3030; }
.home-page .model-preview { background: #15191b; }
.home-page .preview-btn, .home-page .preview-hint { color: #f4f2eb; }
.home-page .support-preview-toggle[aria-pressed="true"] { color: #aff2c7; border-color: #66d6a0; }
.home-page .config-note { color: #89511f; }
.home-page .project-settings-note { color: #665428; background: #faf5e9; border: 1px solid #e2d5b6; border-radius: 9px; padding: 12px; margin-top: 12px; font-size: .82rem; line-height: 1.8; }
.home-page .reference-design { background: linear-gradient(120deg, #fff5e5, #f3f4eb); color: #394330; border-color: #d3c19f; }
.home-page .reference-design > span { color: #815719; }
.home-page .reference-design small { color: #5c6551; }
.home-page .fullcolor-design { background: linear-gradient(120deg, #eaf5ef, #f1eff8); border-color: #b9d3c7; }
.home-page .fullcolor-design > span { color: #386354; }
@media (max-width: 1100px) {
  .home-page .nav-actions { display: none; }
  .home-page .nav-links { justify-content: flex-end; }
  .home-page .hero-content { gap: 28px; padding-block: 60px; }
  .home-page .hero-h1 { font-size: 2.7rem; }
  .home-page .hero-btns { flex-wrap: wrap; }
  .home-page .hero-btns .btn { font-size: .9rem; }
  .home-page .hstat { padding-right: 14px; margin-right: 14px; }
  .brand-showcase { min-height: 440px; }
  .home-page .badge-strip-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 800px) {
  .home-page .wrap { padding-inline: 24px; }
  .home-page .hero-content { grid-template-columns: 1fr; padding-block: 42px; gap: 32px; }
  .home-page .hero-text { max-width: 600px; }
  .home-page .hero-h1 { font-size: clamp(2.4rem,6.3vw,3.3rem); }
  .home-page .hero-visual { width: 100%; max-width: 600px; }
  .home-page .hero-visual { order: -1; }
  .brand-showcase { min-height: 0; padding: 12px 0 0; }
  .brand-hero-logo { width: 190px; }
  .brand-location { margin-bottom: 16px; font-size: .5rem; }
  .brand-showcase figcaption { display: none; }
  .brand-halo { width: 310px; max-width: 100%; }
  .home-page .estimate-layout { grid-template-columns: 1fr; }
  .home-page section { padding-block: 64px; }
  .home-page .nav-links { display: none; }
  .home-page .nav-burger { display: flex; }
  .home-page .hero-btns .btn { max-width: none; width: auto; }
}
@media (max-width: 480px) {
  .home-page .wrap { padding-inline: 20px; }
  .home-page #navbar { height: 68px; }
  .home-page #mobile-menu { top: 68px; }
  .home-page #home { padding-top: 68px; }
  .home-page .hero-content { padding-top: 32px; }
  .home-page .hero-text .hero-eyebrow { font-size: .53rem; letter-spacing: .055em; margin-bottom: 18px; }
  .home-page .hero-h1 { font-size: clamp(2rem,8.5vw,2.7rem); margin-bottom: 16px; }
  .home-page .hero-desc { font-size: .95rem; margin-bottom: 22px; }
  .desktop-break { display: none; }
  .home-page .hero-btns { flex-direction: column; gap: 9px; }
  .home-page .hero-btns .btn { width: 100%; justify-content: center; font-size: .95rem; }
  .home-page .hero-stats { flex-wrap: nowrap; gap: 0; margin-top: 24px; padding-top: 19px; justify-content: space-between; }
  .home-page .hstat { margin: 0; padding-right: 10px; }
  .home-page .hstat strong { font-size: .87rem; }
  .home-page .hstat span { font-size: .68rem; }
  .home-page .hero-content { gap: 24px; padding-top: 20px; }
  .brand-hero-logo { width: 168px; }
  .brand-location { margin-bottom: 14px; }
  .brand-halo { width: 270px; }
  .home-page .hero-text .hero-eyebrow { display: none; }
  .home-page .badge-strip-inner { padding-block: 20px; gap: 18px 12px; }
  .home-page .badge-strip-inner span { font-size: .7rem; }
  .home-page .badge-strip-inner img { width: 16px; height: 16px; }
  .home-page .estimate-workspace { padding: 18px; border-radius: 15px; }
  .home-page .upload-area { padding: 24px 12px; }
  .home-page .result-panel { border-radius: 15px; }
  .home-page .result-header { padding: 20px; }
  .home-page .price-box { padding: 20px; margin: 16px; }
  .home-page .empty-state { padding: 30px 20px; }
  .home-page .print-time-value { font-size: 1.4rem; }
  .home-page .price-big { font-size: 3.4rem; }
  .home-page .lead { font-size: .96rem; }
}

/* Store location: real Google Maps pin with an always-available directions link. */
.home-page .shop-location { display: grid; grid-template-columns: .85fr 1.15fr; margin-top: 48px; border: 1px solid var(--c-border); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.home-page .shop-location-info { padding: 38px; background: radial-gradient(ellipse at 0 100%, #f4e8d6, transparent 75%), #fffdf8; }
.home-page .shop-location-label { display: inline-flex; align-items: center; gap: 8px; color: #825027; font-size: .8rem; margin-bottom: 20px; }
.home-page .shop-location-label img { opacity: .65; }
.home-page .shop-location h3 { font: 700 clamp(1.5rem, 2.3vw, 2rem)/1.45 'Anuphan Display', var(--font-body); letter-spacing: -.035em; }
.home-page .shop-location-name { margin-top: 12px; font-weight: 600; color: #925021; font-size: .98rem; }
.home-page .shop-location-description { margin-top: 16px; font-size: .9rem; line-height: 1.9; color: var(--c-text2); }
.home-page .shop-location-hours { display: flex; align-items: center; gap: 9px; padding-top: 22px; margin-top: 24px; border-top: 1px solid #e5ddcd; font-size: .85rem; color: var(--c-text2); }
.home-page .shop-location-hours strong { color: var(--c-text); font-weight: 500; margin-left: 4px; }
.home-page .shop-location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.home-page .shop-location-actions .btn { padding: 13px 18px; font-size: .9rem; }
.home-page .shop-location-actions .btn img { filter: invert(1); }
.home-page .shop-location-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #815028; font-size: .83rem; text-decoration: underline; text-underline-offset: 4px; }
.home-page .shop-location-map { display: flex; flex-direction: column; min-width: 0; background: #e9ede5; border-left: 1px solid var(--c-border); }
.home-page .shop-location-map iframe { display: block; width: 100%; min-height: 360px; height: 100%; flex: 1; border: 0; }
.home-page .shop-location-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 18px; background: #fff; border-top: 1px solid var(--c-border); color: var(--c-text2); font-size: .75rem; }
.home-page .shop-location-caption a { margin-left: auto; color: #895025; text-decoration: underline; text-underline-offset: 3px; }
.home-page .shop-location-dot { width: 7px; height: 7px; border-radius: 50%; background: #597a4c; }
@media (max-width: 800px) {
  .home-page .shop-location { grid-template-columns: 1fr; margin-top: 32px; }
  .home-page .shop-location-info { padding: 28px; }
  .home-page .shop-location-map { border-left: 0; border-top: 1px solid var(--c-border); }
  .home-page .shop-location-map iframe { height: 320px; min-height: 320px; flex: none; }
}
@media (max-width: 480px) {
  .home-page .shop-location { border-radius: 16px; }
  .home-page .shop-location-info { padding: 24px 20px; }
  .home-page .shop-location-label { margin-bottom: 15px; }
  .home-page .shop-location-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .home-page .shop-location-actions .btn, .home-page .shop-location-link { justify-content: center; }
  .home-page .shop-location-map iframe { height: 290px; min-height: 290px; }
}
/* The mobile-menu link colour (#id rule) must not override the primary CTA text. */
.home-page #mobile-menu a.btn-primary { color: #fff; border-bottom: 0; justify-content: center; padding: 12px 16px; }
.home-page #mobile-menu a.btn-primary:hover { color: #fff; }
[data-theme="dark"] .home-page #mobile-menu a.btn-primary, [data-theme="dark"] .home-page #mobile-menu a.btn-primary:hover { color: #22180e; }
