/* 德和行石油有限公司 — 全站樣式
   顏色、字體大細等等都集中喺 :root 入面，想調就改呢度。 */

:root {
  --red: #c40030;          /* 主選單紅 */
  --red-btn: #eb1128;      /* 按鈕紅 */
  --red-ink: #e41027;      /* 標題紅 */
  --gold: #ffd400;         /* 選單頂金線 */
  --gold-ink: #ffb60e;     /* 選單當前項 */
  --ink: #333;
  --muted: #595959;
  --line: #e3e3e3;
  --bg-soft: #f6f6f6;
  --footer: #2b2b2b;
  --footer-bar: #222;
  --footer-ink: #fff;
  --page-max: 1200px;
  --pad: clamp(20px, 5vw, 80px);
  --gap: clamp(1.5rem, 5vw, 2.5rem);
  --section-y: clamp(2.5rem, 7vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Noto Sans HK", -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  font-size: clamp(1rem, .97rem + .15vw, 1.125rem);
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); }
h1, h2, h3 { line-height: 1.35; font-weight: 500; }

.container { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--pad); width: 100%; }
.center { text-align: center; }
.h-red { color: var(--red-ink); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 .8rem; }
.footnote { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
.eyebrow { color: var(--red-ink); margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem); letter-spacing: .01em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--red-btn); color: #fff; font-weight: 500;
  padding: 9px 20px; border: 0; cursor: pointer;
  font-family: inherit; font-size: .95rem;
}
.btn::after { content: "  ❯"; font-size: .8em; }
.btn:hover { background: #ff2a40; }
.btn--light { background: #fff; color: var(--red-btn); }
.btn--light:hover { background: #ffe9ec; }

/* ------------------------------------------------------ 頁頭 + 選單 */

.topbar { background: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.topbar__logo img { width: 179px; height: auto; }
.topbar__contact { color: var(--muted); text-decoration: none; font-size: 1rem; }
.topbar__contact:hover { color: var(--red-ink); }

.nav { background: var(--red); border-top: 5px solid var(--gold); position: relative; z-index: 30; }
.nav__inner { display: flex; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 34px; }
.nav__list a {
  display: block; padding: 14px 0; color: #fff; text-decoration: none;
  font-weight: 500; font-size: 1.05rem;
}
.nav__list a:hover { color: var(--gold-ink); }
.nav__list .is-current { color: var(--gold-ink); }
.nav__contact-item { display: none; }

.nav__toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: #fff; padding: 13px 0; font: inherit; font-weight: 500; cursor: pointer;
}
.nav__bars { display: grid; gap: 5px; }
.nav__bars i { display: block; width: 22px; height: 2px; background: #fff; }
.nav__toggle em { font-style: normal; }

@media (max-width: 860px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__list { display: none; flex-direction: column; width: 100%; flex-basis: 100%; gap: 0; padding-bottom: 10px; }
  .nav__list.is-open { display: flex; }
  .nav__list > li { border-top: 1px solid rgba(255, 255, 255, .18); }
  .nav__list a { padding: 12px 2px; }
  .nav__contact-item { display: block; }
  .topbar__contact { display: none; }
}

/* ------------------------------------------------------ 通用區塊 */

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }

/* ------------------------------------------------------ 首頁輪播 */

.slider { position: relative; overflow: hidden; background: #000; }
.slider__track { position: relative; height: clamp(300px, 30vw, 420px); }
.slider__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  background-size: cover; background-repeat: no-repeat;
  display: grid; place-items: center; text-align: center; pointer-events: none;
}
.slider__slide::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.slider__slide.is-active { opacity: 1; pointer-events: auto; }
.slider__caption { position: relative; color: #fff; padding-inline: 20px; }
.slider__caption strong {
  display: block; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.slider__caption span {
  display: block; margin-top: .4rem; font-size: clamp(.95rem, .85rem + .5vw, 1.15rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  text-wrap: balance;   /* 唔好淨低一兩個字喺尾行 */
}
.slider__arrow {
  position: absolute; top: 50%; translate: 0 -50%; background: none; border: 0;
  color: rgba(255, 255, 255, .85); font-size: 2rem; line-height: 1; padding: 12px; cursor: pointer;
}
.slider__arrow:hover { color: #fff; }
.slider__arrow--prev { left: 6px; }
.slider__arrow--next { right: 6px; }
@media (max-width: 700px) { .slider__arrow { display: none; } }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slider__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.slider__dot.is-active { background: #fff; }

/* ------------------------------------------------------ 首頁公司簡介 */

.intro { display: grid; grid-template-columns: 300px 1fr; gap: var(--gap); align-items: center; }
.intro__mark img { width: 100%; }
.intro__body h2 { margin: 0 0 .8rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.intro__body p { margin: 0 0 1em; color: var(--muted); max-width: 44em; }
@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; }
  /* 窄螢幕個標誌要置中，同原站一樣 */
  .intro__mark { max-width: 256px; margin-inline: auto; }
}

/* ------------------------------------------------------ 深色圖片區 */

.band {
  background-size: cover; background-position: center; position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem); color: #fff;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.band .container { position: relative; }
.band h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.band .rule { display: block; width: 56px; height: 3px; background: var(--red-btn); margin: .9rem 0 1.2rem; }
.band p { margin: 0 0 1.4rem; max-width: 42em; }

.statement {
  background-size: cover; background-position: center; position: relative;
  min-height: clamp(340px, 42vw, 470px); display: flex; align-items: center; color: #fff;
}
.statement::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.statement .container { position: relative; }
.statement p {
  margin: 0 0 1.1rem; font-weight: 700; text-wrap: balance;
  font-size: clamp(1.15rem, .95rem + 1.1vw, 1.75rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.statement .btn { margin-top: .6rem; }

/* ------------------------------------------------------ 產品頁 */

.subnav { border-bottom: 1px solid var(--line); background: #fff; }
.subnav .container { display: flex; flex-wrap: wrap; gap: 8px 34px; padding-block: 12px; }
.subnav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.subnav a:hover { color: var(--red-ink); }

.feature { padding-block: clamp(2.5rem, 7vw, 4.5rem); scroll-margin-top: 80px; }
.feature--soft { background: var(--bg-soft); }
.feature__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.feature--flip .feature__media { order: -1; }
.feature__body h2 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.feature__body p { margin: 0 0 1.4rem; color: var(--muted); }
.feature__media img { margin-inline: auto; }
@media (max-width: 820px) {
  .feature__row { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

.minifeatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 820px) { .minifeatures { grid-template-columns: 1fr; } }
.minifeature { display: flex; gap: 14px; align-items: flex-start; }
.minifeature img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.minifeature h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.minifeature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.brandrow { margin-top: clamp(2rem, 5vw, 3rem); }
.brandrow img { width: 100%; }

/* ------------------------------------------------------ 燃油頁 */

.fuelhero {
  background-size: cover; background-position: 53% 50%;
  min-height: clamp(280px, 30vw, 400px); display: flex; align-items: center; color: #fff;
}
.fuelhero h1 { margin: 0 0 1.2rem; font-size: clamp(1.7rem, 1.1rem + 3vw, 3rem); font-weight: 700; }
.fuelhero h1 span { font-weight: 700; }

.fuellead__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px) { .fuellead__row { grid-template-columns: 1fr; } }
.fuellead h2 { margin: 0 0 1rem; color: var(--red-ink); font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); }
.bullets { list-style: none; margin: 0; padding: 0; color: var(--red-ink); }
.bullets li { padding-left: 1.1em; position: relative; }
.bullets li::before { content: "•"; position: absolute; left: 0; }

.bigstat { background: var(--red-ink); color: #fff; text-align: center; padding-block: clamp(2rem, 6vw, 3.5rem); }
.bigstat__before, .bigstat__after { margin: 0; font-size: clamp(1.2rem, 1rem + 1vw, 2rem); }
.bigstat__value { margin: .2rem 0; font-weight: 700; line-height: 1; font-size: clamp(4.5rem, 2rem + 12vw, 12rem); }

.textimage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px) { .textimage { grid-template-columns: 1fr; } }
.textimage p { margin: 0 0 .4em; color: var(--muted); }

.reflex__row { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .reflex__row { grid-template-columns: 1fr; } }
.reflex__title {
  margin: 0; color: var(--red-ink); font-weight: 700; line-height: 1.1;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}
.reflex__cards { display: grid; gap: 20px; }
.reflex__card { background: var(--bg-soft); padding: clamp(1.2rem, 3vw, 1.8rem); text-align: center; }
.reflex__head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: .8rem; }
.reflex__head img { width: 52px; height: 52px; object-fit: contain; }
.reflex__head h3 { margin: 0; color: var(--red-ink); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); text-align: left; }
.reflex__card p { margin: 0; color: var(--muted); }

.badge .container { display: grid; justify-items: center; gap: 12px; text-align: center; }
.badge p { margin: 0; color: var(--muted); max-width: 40em; }

.benefits__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px) { .benefits__row { grid-template-columns: 1fr; } }
.benefits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.benefits__list li { display: grid; gap: .2rem; }
.benefit__muted { color: var(--muted); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.benefit__strong { color: var(--red-ink); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }

.notes details { border-top: 1px solid var(--line); padding-top: 1rem; }
.notes summary {
  cursor: pointer; color: var(--red-ink); font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem);
  list-style: none;
}
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: " ▼"; font-size: .7em; }
.notes details[open] summary::after { content: " ▲"; }
.notes__body { margin-top: .8rem; color: var(--muted); }
.notes__body p { margin: 0 0 .6em; }

/* ------------------------------------------------------ 聯絡頁 */

/* Google My Maps 個 iframe 頂部有條 60px 標題列，同原站一樣切走佢 */
.map { position: relative; overflow: hidden; height: clamp(300px, 40vw, 500px); line-height: 0; }
.map iframe { position: absolute; inset: -60px 0 0 0; width: 100%; height: calc(100% + 60px); border: 0; }

.ci { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px) {
  .ci { grid-template-columns: 1fr; }
  .ci__mark { max-width: 300px; margin-inline: auto; }
}
.ci h1 { margin: 0 0 1.4rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.ci__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.ci__list li { display: flex; gap: 14px; align-items: flex-start; }
.ci__icon { flex: none; }
.ci__icon svg { width: 26px; height: 26px; fill: var(--red-ink); }
.ci__list h3 { margin: 0; font-size: 1rem; }
.ci__list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------ 頁尾 */

.footer { background: var(--footer); color: var(--footer-ink); }
.footer a { color: var(--footer-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__cols {
  display: grid; grid-template-columns: auto auto 1fr; gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(1.8rem, 5vw, 2.6rem);
}
.footer__links { display: contents; }
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.footer__links li { position: relative; padding-left: 14px; font-size: .92rem; }
.footer__links li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--red-btn);
}
.footer__info p { margin: 0 0 .6rem; font-size: .92rem; }
.footer__key { display: inline-block; min-width: 3.4em; }
@media (max-width: 700px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__info { grid-column: 1 / -1; }
}

.footer__bar { background: var(--footer-bar); padding-block: 12px; }
.footer__bar p { margin: 0; font-size: .82rem; color: #999; }
.footer__bar a { color: #999; }

/* ------------------------------------------------------ 燈箱（暫時未用到，留返俾日後加相簿） */

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.2rem; line-height: 1; padding: 14px; }
.lightbox__close { top: 4px; right: 8px; font-size: 2.8rem; }
.lightbox__prev { left: 4px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 4px; top: 50%; translate: 0 -50%; }
