/* quartzdisplay.com theme V2 - palette taken from the existing site (grey nav, caramel brown buttons, red accents) */
:root {
  --ink: #444444;
  --ink-2: #5A5A5A;
  --brand: #B17745;
  --accent: #945728;
  --accent-h: #7A4520;
  --wine: #855352;
  --red: #BF0000;
  --yellow: #F9E88C;
  --text: #333333;
  --text-2: #676767;
  --text-3: #9A9A9A;
  --bg: #FFFFFF;
  --bg-2: #EFEFEF;
  --line: #E3E3E3;
  --tint: #E2B98F;
  --tint-bg: #F5EFE7;
  --container: 1240px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .1);
  --font: "Montserrat", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, "Helvetica Neue", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: clamp(26px, 3vw, 38px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; }
button { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--accent); font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.65; }
.text-link { color: var(--accent); font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--accent-h); text-decoration: underline; }
.site-main { display: block; }
section, .section { padding: 48px 0; }
.container.section, section.container { padding-left: 24px; padding-right: 24px; }
.section-alt { background: var(--bg-2); }
.section-warm { background: var(--tint-bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 2px solid transparent; border-radius: 0; font: 700 15px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.topbar { background: var(--yellow); color: #4A3A14; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topnav { display: flex; flex-wrap: wrap; gap: 20px; }
.topnav a { color: #4A3A14; font-weight: 700; }
.topnav a:hover { color: var(--accent); }
.search-form { display: flex; align-items: center; }
.search-form input { width: 220px; height: 32px; padding: 0 10px; border: 1px solid #C9C090; background: #fff; font: 400 13px/1 Arial, sans-serif; color: var(--text); }
.search-form button { height: 32px; padding: 0 14px; border: 0; background: var(--ink); color: #fff; font: 700 13px/1 var(--font); cursor: pointer; }
.search-form button:hover { background: var(--accent); }
.navbar { background: var(--ink); }
.navbar-inner { display: flex; align-items: center; min-height: 76px; gap: 24px; }
.logo { flex: 0 0 auto; }
.logo img { height: 48px; width: auto; }
.main-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu-item { position: relative; }
.menu-item > a { display: block; padding: 28px 16px; color: #E3E3E3; font-family: var(--font); font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; }
.menu-item > a:hover { color: #fff; border-bottom-color: var(--brand); }
.menu-item.is-current > a { color: #fff; border-bottom-color: var(--brand); }
.menu-cta > a.btn { margin-left: 12px; padding: 0 22px; border: 0; }
.menu-cta > a.btn:hover { color: #fff; }
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 14px); z-index: 60; width: 600px; max-width: 92vw; padding: 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); box-shadow: var(--shadow); display: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { display: block; }
.dropdown-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; font-size: 14px; line-height: 1.3; }
.dropdown-menu a:hover { background: var(--bg-2); color: var(--accent); }
.dropdown-menu .thumb { flex: 0 0 64px; width: 64px; height: 48px; overflow: hidden; background: var(--bg-2); }
.dropdown-menu .thumb img { width: 100%; height: 100%; object-fit: cover; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px 8px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; margin: 5px 0; background: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: none; }
.hero-slide:first-child { display: block; }
.hero-slide.is-active { display: block; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(68, 68, 68, .95) 0%, rgba(68, 68, 68, .7) 55%, rgba(68, 68, 68, .35) 100%); }
.hero-text { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; max-width: 720px; }
.hero-text .eyebrow { color: var(--tint); }
.hero h1 { color: #fff; margin: 0 0 20px; }
.hero .lead { color: #E6E6E6; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* trust bar */
.trust { background: var(--ink-2); color: #fff; }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 20px 16px; text-align: center; font-size: 14px; border-right: 1px solid rgba(255, 255, 255, .16); }
.trust li:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--font); font-size: 18px; color: var(--tint); }

/* cards and grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--brand); transform: translateY(-3px); }
.card-media { display: block; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.card-media img.portrait { object-fit: contain; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card-body h3 { font-size: 16px; line-height: 1.4; margin: 0 0 10px; }
.card-body h3 a:hover { color: var(--accent); }
.card-body .card-meta { color: var(--text-3); font-size: 13px; margin: 0 0 6px; }
.card-body .text-link { margin-top: auto; font-size: 14px; }
.feature { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.feature h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; }
.about-card { background: #fff; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; }
.about-card .pic { margin: 0 0 16px; }
.about-card .pic p { margin: 0; }
.about-card img { width: 100%; height: 220px; object-fit: cover; }
.about-card .info { color: var(--text-2); font-size: 14px; }
.about-card .info p { margin: 0; }

/* page header, breadcrumb */
.page-head { background: var(--bg-2); border-bottom: 3px solid var(--brand); padding: 24px 0 32px; }
.breadcrumb { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.page-title { margin: 0; }
.page-desc { max-width: 900px; color: var(--text-2); margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chip { display: inline-block; padding: 6px 12px; background: var(--bg-2); color: var(--text); font-size: 14px; border: 1px solid var(--line); }
.chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 40px 0; }
.gallery-main { display: block; background: #fff; border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.thumb-btn { width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover, .thumb-btn.is-active { border-color: var(--brand); }
.product-info .eyebrow { margin-bottom: 6px; }
.product-title { margin: 0 0 20px; }
.specs { display: grid; grid-template-columns: 170px 1fr; margin: 0 0 28px; border-top: 1px solid var(--line); font-size: 15px; }
.spec { display: contents; }
.spec dt, .spec dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--text-2); }
.spec dd { font-weight: 700; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-detail, .related { margin: 24px 0 48px; }
.product-detail h2, .related h2 { padding-bottom: 10px; border-bottom: 2px solid var(--brand); }

/* rich text from the database */
.content { line-height: 1.7; overflow-wrap: break-word; overflow-x: auto; }
.content img { max-width: 100%; height: auto; }
.content table { max-width: 100%; }
.content h1, .content h2, .content h3, .content h4 { margin: 20px 0 10px; }
.content p { margin: 0 0 12px; }

/* article */
.article-list { margin: 0; }
.article-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-list .date { flex: 0 0 110px; color: var(--text-3); font-size: 13px; }
.article-list a { font-weight: 700; }
.article-list a:hover { color: var(--accent); }
.article-meta { color: var(--text-3); font-size: 13px; margin: 0 0 24px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.page-body { min-width: 0; }
.side-nav { min-width: 240px; padding: 20px; background: var(--bg-2); border-top: 3px solid var(--brand); }
.side-nav h3 { font-size: 15px; margin: 0 0 8px; }
.side-nav li { border-bottom: 1px solid #ddd; }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a { display: block; padding: 10px 0; }
.steps { margin: 0 0 24px; padding-left: 22px; font-size: 16px; }
.steps li { margin-bottom: 8px; }
.field-label { font-size: 14px; font-weight: 700; }
.inquiry > p { margin-bottom: 20px; }
.inquiry .post_box { padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tag-list a { padding: 4px 10px; background: var(--bg-2); font-size: 13px; border: 1px solid var(--line); }
.tag-list a:hover { background: var(--brand); color: #fff; }
.news-group { margin-bottom: 32px; }
.news-group h2 { font-size: 20px; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.pagination { margin: 32px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination .current, .pagination span { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 14px; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--accent); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label em, .req { color: var(--red); font-style: normal; }
.field input[type="text"], .field select, .field textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #CCC; border-radius: 0; background: #fff; font: 400 15px/1.4 Arial, sans-serif; color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.choice { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 400; }
.choice label, .choice span { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; }
.choice input[type="text"] { width: 150px; min-height: 38px; }
.search-large { display: flex; max-width: 760px; margin: 0 0 32px; }
.search-large input { flex: 1; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-right: 0; font: 400 16px/1 Arial, sans-serif; }
.search-large button { height: 52px; padding: 0 28px; border: 0; background: var(--accent); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; }
.search-large button:hover { background: var(--accent-h); }

/* inquiry form (fields are generated by the CMS) */
.inquiry { max-width: 760px; }
.table_form { width: 100%; border-collapse: collapse; }
.table_form td { padding: 10px 16px 10px 0; vertical-align: top; font-size: 14px; }
.table_form td:first-child { width: 190px; font-weight: 700; }
.table_form td:first-child font { color: var(--red); }
.table_form td .error, .inquiry label.error { display: block; margin-top: 4px; color: var(--red); font-size: 12px; font-weight: 400; }
.table_form input[type="text"], .table_form textarea, .table_form select, .table_form .input-text { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #CCC; border-radius: 0; background: #fff; font: 400 15px/1.4 Arial, sans-serif; color: var(--text); }
.table_form textarea { min-height: 140px; }
.table_form input:focus, .table_form textarea:focus, .table_form select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.table_form .button, .button { display: inline-block; min-height: 46px; margin: 0 8px 0 0; padding: 10px 28px; border: 0; border-radius: 0; background: var(--accent); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; }
.table_form .button:hover, .button:hover { background: var(--accent-h); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band .eyebrow { color: var(--tint); }
.cta-band p { color: #E6E6E6; margin: 0; }

/* footer */
.site-footer { background: var(--ink); border-top: 4px solid var(--brand); color: #D4D4D4; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding: 48px 0 32px; }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: 15px; margin: 0 0 12px; }
.site-footer h3 a { color: #fff; }
.site-footer h3.mt { margin-top: 24px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: #D4D4D4; line-height: 1.7; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35); }
.social a:hover { border-color: var(--brand); background: var(--brand); }
.footer-contact { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); line-height: 1.8; }
.footer-contact p { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; color: #BDBDBD; font-size: 13px; }
.float-mail { position: fixed; right: 16px; bottom: 180px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--brand); color: #fff; font: 700 14px/1 var(--font); box-shadow: var(--shadow); }
.float-mail:hover { background: var(--accent); color: #fff; }
.float-mail svg { width: 18px; height: 18px; }

/* responsive: 768-1199 tablet, <768 mobile */
@media (max-width: 1199px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .search-form input { width: 160px; }
  .menu-item > a { padding: 28px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); box-shadow: 0 8px 16px rgba(0, 0, 0, .25); }
  .main-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .menu-item > a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid transparent; }
  .menu-item > a:hover { border-bottom-color: rgba(255, 255, 255, .12); border-left-color: var(--brand); }
  .has-dropdown::after { display: none; }
  .dropdown { position: static; display: block; width: auto; padding: 0 0 8px 16px; border: 0; box-shadow: none; }
  .dropdown-menu { grid-template-columns: repeat(2, 1fr); }
  .menu-cta > a.btn { margin: 16px 8px 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  section, .section { padding: 32px 0; }
  .container.section, section.container { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { justify-content: center; min-height: 36px; }
  .topnav { gap: 12px; justify-content: center; }
  .search-form { display: none; }
  .navbar-inner { min-height: 64px; }
  .logo img { height: 38px; }
  .hero-text { padding-top: 40px; padding-bottom: 40px; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(2) { border-right: 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
  .specs { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .search-large { flex-direction: column; }
  .search-large input { border-right: 2px solid var(--ink); margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .table_form td:first-child { width: auto; padding-bottom: 2px; }
  .table_form td { display: block; width: 100%; padding-right: 0; }
  .article-list li { flex-direction: column; gap: 4px; }
  .float-mail { right: 12px; bottom: 120px; }
  .dropdown-menu { grid-template-columns: 1fr; }
}
