/* Shared reading sizes for the homepage and every engineering page. */
body.htx-site { --htx-reading-size:18px; font-size:var(--htx-reading-size); }

body.htx-site :is(.htx-body-copy,.htx-section-subtitle,.htx-note-list) p,
body.htx-site .htx-note-list li,
body.htx-site .htx-checklist li,
body.htx-site .htx-service-bullets li,
body.htx-site .htx-faq p,
body.htx-site .htx-service-card p,
body.htx-site .htx-about-copy p { font-size:var(--htx-reading-size)!important; line-height:1.85; }
body.htx-site .htx-lead-copy p { font-size:20px!important; }
body.htx-site .htx-hero-content .htx-hero-desc p { font-size:var(--htx-reading-size); line-height:1.85; }
body.htx-site .htx-note-list strong { font-size:18px; }
body.htx-site .htx-faq summary { font-size:18px; line-height:1.7; }

body.htx-site :is(.htx-kicker,.htx-eyebrow,.htx-index) p { font-size:14px!important; line-height:1.65; }
body.htx-site :is(.htx-eyebrow,.htx-index) p { font-size:16px!important; }
body.htx-site .htx-breadcrumb p { font-size:16px; flex-wrap:wrap; row-gap:4px; }
body.htx-site .htx-image-note p,
body.htx-site .htx-photo-card p,
body.htx-site .htx-photo-card .htx-tag,
body.htx-site .htx-gallery-status,
body.htx-site .htx-photo-dialog figcaption,
body.htx-site .htx-lightbox-count { font-size:16px; line-height:1.75; }
body.htx-site .htx-image-note p,
body.htx-site .htx-gallery-status { color:#5d6672; }
body.htx-site .htx-photo-card h3 { font-size:21px; line-height:1.5; }

body.htx-site .htx-btn,
body.htx-site .htx-gallery-filters button,
body.htx-site .htx-service-inquiry-link .elementor-button,
body.htx-site .htx-text-link .elementor-button,
body.htx-site .htx-card-link .elementor-button,
body.htx-site .htx-projects-all .elementor-button,
body.htx-site .htx-hero-button .elementor-button,
body.htx-site .htx-primary-button .elementor-button { font-size:16px; min-height:48px; height:auto; line-height:1.5; }
body.htx-site .htx-hero-button .elementor-button { width:auto; min-width:166px; padding:12px 22px; }
body.htx-site .htx-primary-button .elementor-button { padding:12px 22px; }
body.htx-site .htx-projects-all .elementor-button { padding:10px 20px; border-radius:24px; }
body.htx-site .htx-card-link .elementor-button { display:inline-flex; align-items:center; padding:8px 0; }
body.htx-site .htx-gallery-filters button { padding:10px 16px; }

/* Larger copy needs flexible card rows instead of the original fixed heights. */
body.htx-site .htx-service-card { height:auto; min-height:330px; padding:28px 24px; grid-template-rows:auto auto 1fr auto; gap:14px!important; }
body.htx-site .htx-service-card h3 { font-size:23px; line-height:1.5; }
body.htx-site .htx-service-copy { align-self:start; }
body.htx-site .htx-service-card .htx-card-link { align-self:end; }
body.htx-site .htx-project-card { min-height:230px; }
body.htx-site .htx-project-card .htx-project-title h3 { font-size:21px; line-height:1.5; }
body.htx-site .htx-project-card .htx-project-meta p { font-size:16px; line-height:1.6; }
body.htx-site .htx-stat-card { height:auto; min-height:230px; padding:24px 12px; }
body.htx-site .htx-stat-copy p { font-size:16px; line-height:1.75; }
body.htx-site .htx-stats-layout { grid-template-columns:minmax(320px,1fr) minmax(0,2fr); }
body.htx-site .htx-about-copy p { margin-bottom:16px; }

/* Shared navigation remains readable before it changes to the compact menu. */
body.htx-site .htx-header-inner { grid-template-columns:minmax(240px,280px) minmax(0,1fr) 184px; gap:24px; transform:none; }
body.htx-site .htx-logo .htx-logo-en p { font-size:14px; letter-spacing:.07em; line-height:1.4; }
body.htx-site .htx-logo h2 { font-size:clamp(22px,1.5vw,28px); }
body.htx-site .htx-nav { gap:clamp(18px,1.5vw,28px); }
body.htx-site .htx-nav a,
body.htx-site .htx-mobile-nav .elementor-button,
body.htx-site .htx-projects-submenu a { font-size:16px; }
body.htx-site .htx-phone-chip { width:184px; min-height:60px; }
body.htx-site .htx-phone-chip .elementor-icon-box-title,
body.htx-site .htx-phone-chip .elementor-icon-box-description { font-size:16px; line-height:1.45; letter-spacing:0; }

/* The same footer rules apply to the homepage and every inner page. */
body.htx-site .htx-contact-grid { grid-template-columns:minmax(320px,1.1fr) minmax(180px,.55fr) minmax(330px,1.35fr); }
body.htx-site .htx-contact-brand h2 { font-size:24px; line-height:1.5; }
body.htx-site .htx-contact-brand .htx-contact-brand-en p { font-size:14px; line-height:1.5; letter-spacing:.06em; }
body.htx-site .htx-contact-brand .htx-contact-details p { font-size:16px; line-height:1.9; }
body.htx-site .htx-quick-links a { font-size:16px; line-height:1.75; min-height:36px; }
body.htx-site .htx-contact h3 { font-size:21px; line-height:1.5; margin-bottom:14px; }
body.htx-site .htx-contact-form input,
body.htx-site .htx-contact-form textarea,
body.htx-site .htx-contact-form button { font-size:16px; min-height:48px; height:auto; line-height:1.5; padding:11px 13px; }
body.htx-site .htx-contact-form textarea { min-height:104px; }
body.htx-site .htx-contact-form .elementor-field-group { margin-bottom:10px; }
body.htx-site .htx-contact-form .elementor-message,
body.htx-site .htx-form-notice { font-size:16px; line-height:1.7; }
body.htx-site .htx-copyright { height:auto; min-height:44px; padding:12px 20px; font-size:14px; line-height:1.7; }

body.htx-site .htx-contact-info > span,
body.htx-site .htx-contact-info p,
body.htx-site .htx-line-panel .htx-tag,
body.htx-site .htx-line-panel p,
body.htx-site .htx-copy-status,
body.htx-site .htx-inquiry-form label,
body.htx-site .htx-inquiry-form .htx-consent,
body.htx-site .htx-form-help,
body.htx-site .htx-form-status { font-size:16px; line-height:1.75; }
body.htx-site .htx-inquiry-form input,
body.htx-site .htx-inquiry-form select,
body.htx-site .htx-inquiry-form textarea { font-size:16px; }

body.htx-site .htx-contact-rail,
body.htx-site .htx-desktop-contact { width:90px; top:min(50vh,calc(100vh - 320px)); }
body.htx-site .htx-contact-rail .htx-rail-item,
body.htx-site .htx-desktop-contact a { height:76px; }
body.htx-site .htx-contact-rail .elementor-icon-box-wrapper { min-height:76px; gap:7px!important; }
body.htx-site .htx-contact-rail .elementor-icon-box-title,
body.htx-site .htx-desktop-contact a > span:not(.htx-contact-icon) { font-size:16px; line-height:1.5; }
body.htx-site .htx-mobile-contact a { font-size:16px; gap:6px; }

@media (min-width:901px) {
 body.htx-site:not(.htx-inner-page) .htx-shell,
 body.htx-site .htx-page-shell { width:min(1600px,calc(100% - 220px)); }
 body.htx-site.htx-inner-page .htx-section > .htx-shell { width:min(1200px,calc(100% - 220px)); }
}

@media (max-width:1250px) {
 body.htx-site .htx-header,body.htx-site .htx-header-inner { height:82px; }
 body.htx-site .htx-header-inner { grid-template-columns:minmax(0,1fr) auto; width:calc(100% - 40px); gap:16px; }
 body.htx-site .htx-header-inner > .htx-logo { grid-column:1; width:auto; min-width:0; }
 body.htx-site .htx-nav,body.htx-site .htx-phone-chip { display:none!important; }
 body.htx-site .htx-menu-toggle-wrap { display:block!important; width:44px; grid-column:2; }
 body.htx-site .htx-menu-toggle { display:block!important; width:44px; height:44px; border:0; background:transparent; color:var(--htx-navy); font-size:26px; cursor:pointer; }
 body.htx-site .htx-mobile-nav { position:absolute; top:82px; right:0; left:0; width:100%!important; max-width:100%; padding:10px 24px 18px; background:#fff; box-shadow:0 12px 20px #071b3220; max-height:calc(100dvh - 180px); overflow-y:auto; }
 body.htx-site .htx-mobile-nav.is-open { display:grid!important; }
 body.htx-site .htx-mobile-nav .elementor-widget-button { width:100%; }
 body.htx-site .htx-mobile-nav .elementor-button { width:100%; min-height:48px; padding:12px 0; border-radius:0; border-bottom:1px solid #eceef1; background:transparent!important; color:var(--htx-ink)!important; font-weight:700; }
 body.htx-site .htx-mobile-nav .htx-projects-trigger { position:relative; border-bottom:1px solid #eceef1; }
 body.htx-site .htx-mobile-nav .htx-projects-trigger > .elementor-button-wrapper { width:100%; flex-basis:100%; }
 body.htx-site .htx-mobile-nav .htx-projects-trigger .elementor-button { border-bottom:0; padding-inline:48px; }
 body.htx-site .htx-mobile-nav .htx-projects-toggle { position:absolute; right:0; top:50%; transform:translateY(-50%); width:48px; min-width:48px; height:48px; }
 body.htx-site .htx-mobile-nav .htx-projects-submenu { position:static; width:100%; margin:4px 0 8px; padding:4px 8px; border:0; border-left:3px solid var(--htx-orange); background:#f5f7f9; box-shadow:none; }
 body.htx-site .htx-mobile-nav .htx-projects-submenu a { min-height:48px; padding:12px; font-size:16px; }
 body.htx-site .htx-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.htx-site .htx-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.htx-site .htx-stats-layout { grid-template-columns:1fr; }
 body.htx-site .htx-contact-grid { grid-template-columns:1.2fr 1fr; }
 body.htx-site .htx-contact-form-wrap { grid-column:1/-1; }
}
@media (max-width:900px) {
 body.htx-site .htx-contact-rail,body.htx-site .htx-desktop-contact { display:none!important; }
}
@media (max-width:600px) {
 body.htx-site { --htx-reading-size:17px; }
 body.htx-site .htx-logo h2 { font-size:20px; }
 body.htx-site .htx-logo .htx-logo-en p { font-size:14px; letter-spacing:.035em; }
 body.htx-site .htx-lead-copy p { font-size:19px!important; }
 body.htx-site .htx-service-grid,body.htx-site .htx-project-grid,body.htx-site .htx-contact-grid { grid-template-columns:1fr; }
 body.htx-site .htx-service-card { min-height:0; padding:26px 22px; }
 body.htx-site .htx-service-card h3 { font-size:23px; }
 body.htx-site .htx-projects-heading { align-items:flex-start!important; gap:16px!important; flex-wrap:wrap!important; }
 body.htx-site .htx-stat-card { min-height:185px; }
 body.htx-site .htx-contact-brand { display:flex!important; flex-direction:column; padding-right:0; }
 body.htx-site .htx-contact-brand h2 { font-size:22px; }
 body.htx-site .htx-contact-brand .htx-qr { position:static; align-self:flex-start; width:88px!important; height:88px; margin-top:18px; transform:none; }
 body.htx-site .htx-quick-links a { min-height:48px; padding:10px; }
 body.htx-site .htx-contact-form-wrap { grid-column:auto; }
}

body.htx-site :is(h1,h2,h3,h4,h5,h6) { font-family:"Noto Sans TC",sans-serif!important; }
