/* cowaymalaysiaagent.com — paper and ink, one forest-teal accent, 1px rules, no shadows. */
:root {
  --paper: #ffffff;
  --paper-2: #eef4fa;
  --card: #f7fafd;
  --ink: #12233a;
  --muted: #5b6b7d;
  --rule: #d5e0ea;
  --accent: #0067b1;
  --accent-ink: #ffffff;
  --accent-soft: #e1eef8;
  --serif: "Noto Sans", Arial, Helvetica, sans-serif;
  --sans: "Noto Sans", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 4px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #004e88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.kicker { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 118px; }
.brand span { font: 500 15px/1 var(--serif); font-style: italic; padding-left: 10px; border-left: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
.menu { display: none; min-height: 40px; padding: 6px 14px; background: transparent; border: 1px solid var(--ink); border-radius: 4px; font: 600 14px var(--sans); color: var(--ink); }

/* hero */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fig { margin: 0; border: 1px solid var(--rule); background: var(--card); padding: 22px 22px 16px; }
.hero-fig img { width: 62%; margin: 0 auto; }
.hero-fig figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.hero-fig figcaption b { color: var(--ink); font-family: var(--serif); font-size: 17px; display: block; }

/* sections */
.sec { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { margin: 0; color: var(--muted); max-width: 420px; }

/* category index: plain numbered list */
.cat-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cat-index a { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 18px; align-items: baseline; padding: 18px 4px;
  border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.cat-index a:hover { background: var(--paper-2); }
.ci-no { font: 500 14px var(--sans); color: var(--muted); }
.ci-name { font: 600 22px/1.2 var(--serif); }
.ci-count { color: var(--muted); font-size: 14px; }
.ci-from { font-weight: 600; font-size: 15px; min-width: 150px; text-align: right; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 22px 8px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.steps b { display: block; font: 500 40px/1 var(--serif); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* product rows */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 96px 1fr 210px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row-img { background: var(--card); border: 1px solid var(--rule); padding: 8px 14px; }
.row-img img { width: 100%; aspect-ratio: 450 / 740; object-fit: contain; }
.row-cat { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row h3 { font-size: 22px; }
.row h3 span { font: 400 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.row-feat { margin: 8px 0 0; font-size: 15px; }
.row-feat i { font-style: normal; color: var(--muted); }
.row-var, .row-off { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.row-off { color: var(--accent); }
.row-price { text-align: right; }
.row-price p { margin: 0 0 10px; }
.row-price s { color: var(--muted); font-size: 14px; }
.row-price b { font: 600 30px/1 var(--serif); }
.row-price small { color: var(--muted); }
.row-price .btn { width: 100%; }

/* lettered note */
.note { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--rule); padding: 40px 44px; }
.note h2 { font-size: 30px; margin-bottom: 14px; }
.note p { margin: 0 0 12px; }
.note .sign { font-family: var(--serif); font-style: italic; margin-top: 20px; }

/* catalogue page */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); }
.page-head p { margin: 12px 0 0; color: var(--muted); max-width: 640px; }
.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 36px 0 64px; align-items: start; }
.cat-side { position: sticky; top: 92px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cat-side button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 11px 4px; background: none; border: 0;
  border-bottom: 1px solid var(--rule); font: 500 15px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.cat-side button span { color: var(--muted); }
.cat-side button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.cat-pick { display: none; }
.cat-block + .cat-block { margin-top: 44px; }
.cat-block h2 { font-size: 26px; margin-bottom: 12px; }

/* enquiry */
.enq { padding: 64px 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.enq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.enq h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.enq-info p { color: var(--muted); }
.enq-info dl { margin: 24px 0 0; border-top: 1px solid var(--rule); }
.enq-info dl div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.enq-info dt { font-weight: 700; }
.enq-info dd { margin: 2px 0 0; color: var(--muted); }
.form { background: var(--card); border: 1px solid var(--rule); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b7c6d4; border-radius: 4px;
  background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { grid-column: 1 / -1; min-height: 50px; font-size: 16px; }
.form-note { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; color: var(--muted); }

/* terms */
.terms { max-width: 760px; padding: 48px 0 64px; }
.terms h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 18px; }
.terms h2 { font-size: 22px; margin: 30px 0 8px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* footer */
.ftr { background: var(--ink); color: #c9d4e0; padding: 48px 0 28px; font-size: 15px; }
.ftr a { color: #fff; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr-name { font: 600 22px var(--serif); color: #fff; margin: 0 0 10px; }
.ftr-h { font-weight: 700; color: #fff; margin: 0 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 6px; }
.ftr-fine { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid #2c4058; font-size: 13px; color: #9fb0c2; }
.ftr-bottom { margin: 12px 0 0; font-size: 13px; color: #9fb0c2; }
.ftr-bottom a { color: #04a6e1; font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
  .hero-grid, .enq-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-fig { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cat-layout { grid-template-columns: 1fr; gap: 20px; }
  .cat-side { display: none; }
  .cat-pick { display: block; position: sticky; top: 69px; z-index: 5; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .cat-pick label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
  .cat-pick select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; font: 500 16px var(--sans); }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .ftr-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 12px; }
  .hdr-row { position: relative; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 44px; }
  .sec, .enq { padding: 44px 0; }
  .sec-head { display: block; }
  .sec-head p { margin-top: 8px; }
  .cat-index a { grid-template-columns: 34px 1fr; gap: 2px 10px; }
  .ci-count, .ci-from { grid-column: 2; text-align: left; min-width: 0; }
  .ci-name { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .row { grid-template-columns: 76px 1fr; gap: 14px; align-items: start; }
  .row-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
  .row-price p { margin: 0; }
  .row-price .btn { width: auto; }
  .row h3 { font-size: 19px; }
  .note { padding: 26px 20px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .ftr-cols { grid-template-columns: 1fr; gap: 24px; }
}
.row-price .btn { white-space: nowrap; }
@media (max-width: 640px) { .hero-fig { max-width: 300px; } .hero-fig img { width: 50%; } }
/* Coway anniversary banner, top of the home page */
.banner { padding: 20px 0 0; }
.banner a { display: block; border: 1px solid var(--rule); }
.banner img { width: 100%; aspect-ratio: 1600 / 1067; }
.hero h1 em { color: #04a6e1; }
@media (max-width: 640px) { .banner { padding-top: 12px; } }
/* Noto Sans throughout, as on coway.com.my */
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; }
.brand span { font-weight: 600; font-style: normal; }
.ci-name { font-weight: 600; }
/* polish */
.hero h1 em { color: var(--accent); }
.cat-index a { grid-template-columns: 1fr auto auto; }
::selection { background: #cfe6f6; color: var(--ink); }
input, textarea { caret-color: var(--accent); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ftr a:focus-visible { outline-color: #04a6e1; }
.row-price b, .ci-from, .row-price s { font-variant-numeric: tabular-nums; }
.btn { transition: background-color .15s ease-out, color .15s ease-out; }
.form-status { grid-column: 1 / -1; margin: -6px 0 0; font-size: 14px; color: var(--accent); min-height: 0; }
.form-status:empty { display: none; }
@media (max-width: 640px) { .cat-index a { grid-template-columns: 1fr auto; } .ci-count { grid-column: 1; grid-row: 2; } .ci-from { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; } }
/* small site number so the agent's sites are easy to tell apart */
.site-no { position: absolute; top: 1px; left: 3px; z-index: 40; font-size: 9px; line-height: 1; color: #9fb0c2; pointer-events: none; user-select: none; }
/* the header sits inside #site-header, so stick the wrapper itself (sticky on the inner header had nothing to stick within) */
#site-header { position: sticky; top: 0; z-index: 30; }
/* product rows: big image left, description top right, price + button bottom right */
.row { grid-template-columns: 200px 1fr; grid-template-rows: 1fr auto; gap: 14px 32px; align-items: stretch; padding: 28px 0; }
.row-img { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; padding: 18px; }
.row-img img { width: auto; height: 240px; max-width: 100%; }
.row-main { grid-column: 2; align-self: start; }
.row h3 { font-size: 26px; }
.row-feat { font-size: 16px; margin-top: 10px; }
.row-price { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: flex-end; gap: 20px; text-align: right; }
.row-price p { margin: 0; }
.row-price .btn { width: auto; min-width: 190px; }
@media (max-width: 640px) {
  .row { grid-template-columns: 120px 1fr; gap: 10px 16px; padding: 20px 0; }
  .row-img { padding: 10px; }
  .row-img img { height: 170px; }
  .row h3 { font-size: 20px; }
  .row-feat { font-size: 14px; }
  .row-price { grid-column: 2; flex-direction: column; align-items: flex-end; gap: 8px; }
  .row-price .btn { min-width: 0; width: 100%; }
  .row-price b { font-size: 26px; }
}
/* price above the button, both left-aligned under the details */
.row-price, .row-price p { text-align: left; }
.row-price { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; }
.row-price .btn { min-width: 220px; }
@media (max-width: 640px) { .row-price { align-items: stretch; } .row-price .btn { min-width: 0; width: 100%; } }
:root { --strip-bg: #0067b1; --drop-bg: #ffffff; --drop-rule: #d5e0ea; }

/* scrolling promo strip */
.strip { display: block; overflow: hidden; background: var(--strip-bg); color: #fff; text-decoration: none; font-size: 14px; line-height: 1; white-space: nowrap; }
.strip-track { display: inline-flex; animation: strip 40s linear infinite; }
.strip:hover .strip-track, .strip:focus-visible .strip-track { animation-play-state: paused; }
.strip-run { display: inline-flex; align-items: center; }
.strip-item { padding: 11px 0; }
.strip-item b { color: #fff; font-weight: 700; }
.strip-sep { padding: 0 22px; color: #7fd0f0; font-size: 11px; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
/* Products dropdown */
.has-drop { position: relative; }
.has-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.drop { display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px 0; background: var(--drop-bg); border: 1px solid var(--drop-rule); border-radius: 4px; z-index: 50; }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.nav .drop a { display: block; padding: 8px 16px; font-size: 15px; text-decoration: none; white-space: nowrap; border: 0; }
.drop a { color: var(--ink); }
.nav .drop a:hover { background: var(--paper-2); color: var(--accent); }
@media (max-width: 760px) {
  .has-drop > a::after { display: none; }
  .drop { display: block; position: static; min-width: 0; padding: 0 0 8px; border: 0; background: none; }
  .nav .drop a { padding: 9px 0 9px 16px; font-size: 14px; border-bottom: 1px solid var(--rule); color: var(--muted); }
  .nav { max-height: calc(100vh - 110px); overflow-y: auto; }
}
