/* =========================================================
   FoldingDoor.my — Design System
   Aluminium Folding Doors & Windows | Malaysia
   ========================================================= */

:root {
  /* Palette */
  --ink:        #16181d;
  --ink-2:      #2a2e36;
  --slate:      #4a505b;
  --muted:      #7b828d;
  --line:       #e4e6ea;
  --bg:         #ffffff;
  --bg-2:       #f6f7f9;
  --bg-3:       #eef0f3;
  --accent:     #c0873a;   /* warm bronze / aluminium gold */
  --accent-2:   #a8712a;
  --accent-tint:#f6ecdc;
  --wa:         #25d366;   /* WhatsApp green */
  --white:      #ffffff;

  /* Type */
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(22,24,29,.08);
  --shadow-lg: 0 24px 60px rgba(22,24,29,.16);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1rem; color: var(--slate); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink p { color: #b8bcc4; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.06rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); flex: none; margin-right: 10px;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand b { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--slate);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; font-size: .82rem; font-weight: 700;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 13px; cursor: pointer; color: var(--muted);
  transition: var(--transition); font-family: inherit; font-weight: 700;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #14161b 0%, #23272f 55%, #30353e 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(192,135,58,.32), transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35));
}
.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; padding: 92px 0 96px;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.16rem; color: #cfd3da; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .82rem; color: #a7acb5; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; font-weight: 600; color: #e7d9c2; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }

.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 420px;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, #2c313a 0 3px, #232830 3px 33%),
    linear-gradient(135deg, #3a4b63, #5a7391 60%, #8fa7c0);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-visual .glass-panes { position: absolute; inset: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.hero-visual .glass-panes span {
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 45%, rgba(120,150,180,.25));
  border: 1px solid rgba(255,255,255,.22);
}
.hero-visual .float-card {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(20,22,27,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hero-visual .float-card .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.hero-visual .float-card .ic svg { width: 20px; height: 20px; color: #fff; }
.hero-visual .float-card b { color: #fff; font-size: .95rem; display: block; }
.hero-visual .float-card small { color: #b4b9c1; font-size: .8rem; }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--slate); }
.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: var(--transition);
}
.card:hover { border-color: #d2d5db; box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; background: var(--accent-tint);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .ic svg { width: 25px; height: 25px; color: var(--accent-2); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* Product card */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4/3; position: relative; }
.product-card .thumb .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(20,22,27,.85); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .04em;
}
.product-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .body h3 { margin-bottom: 6px; }
.product-card .body p { font-size: .93rem; flex: 1; }
.product-card .more { color: var(--accent-2); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.product-card:hover .more { gap: 10px; }

/* Real photo layer — drop a correctly-named image into assets/img/…
   and it covers the gradient placeholder automatically. If the file
   is missing, onerror removes the <img> and the gradient shows. */
.ph { position: relative; }
.ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0; display: block; z-index: 0;
}
.product-card .thumb .tag,
.gallery-grid .cell .cap { z-index: 2; }
.visual { position: relative; overflow: hidden; }

/* Decorative "photo" fills (used until real images are added) */
.ph {
  background-position: center; background-size: cover;
  background-color: #cfd6df;
}
.ph-1 { background: linear-gradient(135deg,#3a4b63,#7d95b0); }
.ph-2 { background: linear-gradient(135deg,#4a5340,#8b9a78); }
.ph-3 { background: linear-gradient(135deg,#5a4a52,#a58794); }
.ph-4 { background: linear-gradient(135deg,#2f3a4a,#5f7387); }
.ph-5 { background: linear-gradient(135deg,#4b4436,#9c8f6f); }
.ph-6 { background: linear-gradient(135deg,#324a48,#6f9490); }
.ph-slats { background-image: repeating-linear-gradient(78deg, rgba(255,255,255,.10) 0 2px, transparent 2px 26px); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: var(--radius); min-height: 360px; box-shadow: var(--shadow); }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feature-list .tick svg { width: 15px; height: 15px; color: var(--accent-2); }
.feature-list b { color: var(--ink); display: block; }
.feature-list span.d { font-size: .92rem; color: var(--slate); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { position: relative; padding-top: 12px; }
.step .n {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--accent);
  font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-grid .cell { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; position: relative; }
.gallery-grid .cell.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-grid .cell .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-weight: 600;
  font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
}

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p { color: var(--ink-2); font-size: 1rem; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-weight: 800; color: var(--slate); }
.quote-card .who b { display: block; font-size: .92rem; }
.quote-card .who small { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); transition: var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink), #2b3039); color: #fff; border-radius: 20px; padding: 52px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 80% 0%, rgba(192,135,58,.28), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cdd4; max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; }
.info-list li > div { line-height: 1.4; }
.info-list br { display: none; }
.info-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 22px; height: 22px; color: var(--accent-2); }
.info-list b { display: block; color: var(--ink); margin-bottom: 2px; }
.info-list a, .info-list span { color: var(--slate); font-size: .96rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; background: var(--bg-2); transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3c7cf; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #9aa0aa; font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: #b0b6bf; font-size: .93rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2e36; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7d838d; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 15px;
  background: var(--wa); color: #fff; border-radius: 999px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: var(--transition);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .txt { max-width: 220px; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg,#14161b,#2a2e36); color: #fff; padding: 62px 0; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #c1c5cd; max-width: 620px; margin: 0; }
.breadcrumb { font-size: .84rem; color: #9298a2; margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 74px; }
  .hero-visual { min-height: 320px; order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px; gap: 2px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  body.nav-open .nav-links { transform: none; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-desktop-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid .cell.wide { grid-column: span 2; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 38px 24px; }
  .wa-float .txt { display: none; }
  .hero-stats { gap: 24px; }
}
