/* ═══════════════════════════════════════════════
   KIWI FLOORING SERVICES LTD — style.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --forest:  #1e4d2b;
  --leaf:    #3a7d44;
  --sage:    #5fa367;
  --mint:    #e6f2e8;
  --cream:   #f8f5ef;
  --warm:    #f0ece3;
  --gold:    #b8955a;
  --gold-lt: #f5ead8;
  --dark:    #141414;
  --body:    #3a3a3a;
  --mid:     #666;
  --border:  #e0dbd1;
  --white:   #ffffff;
  --shadow:  0 2px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius:  10px;
  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; color: var(--dark); }

/* ── TOPBAR ── */
.topbar {
  background: var(--forest);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  padding: 7px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.topbar a { color: rgba(255,255,255,.72); transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar-r { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-r span { display: flex; gap: 5px; align-items: center; }
.topbar-r svg { width: 12px; height: 12px; stroke: rgba(255,255,255,.5); flex-shrink: 0; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--leaf);
  position: sticky; top: 0; z-index: 300;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* KF LOGO MARK */
.kf-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  text-decoration: none;
}
.kf-mark {
  width: 44px; height: 44px; background: var(--forest);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(30,77,43,.3);
  transition: background .2s;
}
.kf-mark svg { width: 28px; height: 28px; }
.kf-logo:hover .kf-mark { background: var(--leaf); }
.kf-name { line-height: 1.2; }
.kf-name strong {
  font-family: var(--ff-head); font-size: 17px; font-weight: 700;
  color: var(--forest); display: block; letter-spacing: .3px;
}
.kf-name span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--mid); font-weight: 500;
}

/* MAIN NAV */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item {
  font-size: 13px; font-weight: 600; color: var(--body);
  padding: 8px 13px; border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap; letter-spacing: .2px;
}
.nav-item:hover { color: var(--forest); background: var(--mint); }
.nav-item.active { color: var(--forest); font-weight: 700; }
.nav-item-arrow.active-arrow { color: var(--forest); font-weight: 700; }

/* ── NAV DROPDOWN ── */
.nav-group { position: relative; display: inline-flex; }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item-arrow {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--body);
  padding: 8px 13px; border-radius: 6px; cursor: pointer;
  transition: color .15s, background .15s; white-space: nowrap;
  background: none; border: none; font-family: var(--ff-body);
  letter-spacing: .2px;
}
.nav-item-arrow svg { width: 11px; height: 11px; fill: var(--mid); transition: transform .2s; flex-shrink: 0; }
.nav-item-arrow:hover { color: var(--forest); background: var(--mint); }
.nav-group:hover .nav-item-arrow svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; min-width: 200px; padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 999;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--body);
  transition: background .12s, color .12s; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--mint); color: var(--forest); }
.nav-dropdown a svg { width: 14px; height: 14px; fill: var(--mid); flex-shrink: 0; }
.nav-dropdown a:hover svg { fill: var(--leaf); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 6px; }
/* Mobile dropdown items */
.mobile-nav .mobile-sub { padding-left: 36px !important; font-size: 13px !important; color: var(--mid) !important; background: var(--bg); }
.mobile-nav .mobile-sub:hover { color: var(--forest) !important; background: var(--mint) !important; }
.mobile-nav .mobile-group-label { padding: 10px 24px 4px !important; font-size: 10px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .8px; color: var(--mid) !important; cursor: default !important; border-bottom: none !important; }
.mobile-nav .mobile-group-label:hover { background: none !important; color: var(--mid) !important; }


/* CTA BUTTON IN HEADER */
.hdr-cta {
  display: flex; align-items: center; gap: 6px;
  background: var(--forest); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; padding: 9px 18px; border-radius: 6px;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.hdr-cta:hover { background: var(--leaf); color: #fff; }
.hdr-cta svg { width: 13px; height: 13px; }

/* MOBILE HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; display: block; }
.mobile-nav {
  display: none; background: var(--white); border-top: 1px solid var(--border);
  padding: 16px 0; box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; font-size: 15px; font-weight: 600; color: var(--body); border-bottom: 1px solid var(--border); transition: color .15s; }
.mobile-nav a:hover { color: var(--forest); }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.page-hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,50,24,.9) 0%, rgba(20,50,24,.15) 60%, transparent 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 48px 48px 52px; max-width: 1200px; margin: 0 auto; width: 100%;
}
.page-hero-content h1 {
  font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; color: #fff; line-height: 1.1;
  margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.page-hero-content p { font-size: 16px; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.65; }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--leaf); margin-bottom: 12px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 2px; background: var(--leaf); border-radius: 2px; }
.section-title { font-family: var(--ff-head); font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--mid); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 12px 24px; border-radius: 7px; border: none;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--leaf); color: #fff; }
.btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a07d48; color: #fff; }
.btn-sm { font-size: 11px; padding: 8px 16px; }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── QUOTE CALCULATOR ── */
.quote-bar {
  background: linear-gradient(135deg, #1a3d22 0%, var(--forest) 100%);
  border-top: 3px solid var(--gold);
  padding: 0;
}
.quote-bar-toggle {
  max-width: 1200px; margin: 0 auto; padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; user-select: none;
}
.quote-bar-label {
  display: flex; align-items: center; gap: 14px;
}
.quote-bar-label svg { width: 24px; height: 24px; fill: var(--gold); flex-shrink: 0; }
.quote-bar-label strong {
  font-family: var(--ff-head); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .2px;
}
.quote-bar-label span { font-size: 13px; color: rgba(255,255,255,.65); margin-left: 6px; }
.quote-bar-arrow {
  width: 32px; height: 32px; background: rgba(255,255,255,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .3s, background .2s;
}
.quote-bar-arrow svg { width: 16px; height: 16px; stroke: #fff; transition: transform .3s; }
.quote-bar-arrow.open svg { transform: rotate(180deg); }
.quote-bar-arrow:hover { background: rgba(255,255,255,.2); }

.quote-body {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.quote-body.open { max-height: 1400px; }
.quote-inner { max-width: 1200px; margin: 0 auto; padding: 36px 48px 44px; }

/* QUOTE FORM ELEMENTS */
.q-fl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--mid); display: block; margin-bottom: 6px; }
.q-fi {
  width: 100%; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 10px 14px; font-family: var(--ff-body); font-size: 14px;
  color: var(--dark); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.q-fi:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(58,125,68,.1); }
select.q-fi option { background: #fff; }
.q-g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 14px; }
.q-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:860px){ .q-g4{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .q-g4,.q-g2{ grid-template-columns:1fr; } }

/* QUOTE SERVICE CHECKS */
.q-svc-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 8px; margin-top: 4px; }
.q-svc-item {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 9px 12px; cursor: pointer; user-select: none;
  background: var(--white); transition: border-color .15s, background .15s;
}
.q-svc-item:hover { border-color: var(--leaf); background: var(--mint); }
.q-svc-item.on { border-color: var(--leaf); background: var(--mint); }
.q-svc-item input { display: none; }
.q-cb {
  width: 16px; height: 16px; min-width: 16px; border: 2px solid var(--border);
  border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.q-svc-item.on .q-cb { background: var(--leaf); border-color: var(--leaf); }
.q-cb svg { display: none; }
.q-svc-item.on .q-cb svg { display: block; }
.q-svc-nm { font-size: 12px; font-weight: 600; flex: 1; color: var(--dark); }
.q-svc-px { font-size: 11px; color: var(--mid); }

/* QUOTE MAT INDICATOR */
.q-mat-ind {
  display: none; align-items: center; gap: 8px;
  background: var(--mint); border: 1px solid var(--leaf);
  border-radius: 6px; padding: 9px 14px; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; color: var(--forest);
}
.q-mat-ind svg { width: 14px; height: 14px; fill: var(--leaf); flex-shrink: 0; }
.q-mat-ind.show { display: flex; }

/* QUOTE ROOM CARDS */
.q-room-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.q-room-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: border-color .15s;
}
.q-room-card:hover { border-color: var(--sage); }
.q-room-main { padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.q-room-num {
  font-family: var(--ff-head); font-size: 13px; font-weight: 700;
  color: #fff; background: var(--forest); width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.q-room-info { flex: 1; min-width: 0; }
.q-room-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.q-room-meta { font-size: 12px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-room-area { font-family: var(--ff-head); font-size: 15px; font-weight: 700; color: var(--forest); min-width: 58px; text-align: right; padding-right: 4px; }
.q-room-btns { display: flex; gap: 5px; flex-shrink: 0; }

/* QUOTE ROOM EDIT PANEL */
.q-edit-panel { border-top: 2px solid var(--mint); padding: 18px 16px 14px; background: #fafcfa; display: none; }
.q-edit-panel.open { display: block; }
.q-ep-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--forest); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.q-ep-title svg { width: 12px; height: 12px; fill: var(--leaf); }
.q-ep-actions { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }

/* QUOTE OUTPUT */
.q-output-wrap { border: 2px solid var(--forest); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 4px; }
.q-out-head { background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.q-out-head-l { display: flex; align-items: center; gap: 14px; }
.q-out-logo { height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.q-out-logo-fb { font-family: var(--ff-head); font-size: 14px; font-weight: 700; color: #fff; display: none; }
.q-out-title { font-family: var(--ff-head); font-size: 16px; font-weight: 700; }
.q-out-sub { font-size: 11px; opacity: .7; margin-top: 1px; }
.q-out-date { font-size: 11px; opacity: .7; }
.q-out-body { padding: 24px 28px; background: var(--white); }
.q-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.q-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid); text-align: left; padding: 7px 10px; border-bottom: 2px solid var(--border); }
.q-table td { padding: 8px 10px; border-bottom: 1px solid var(--warm); }
.q-table .q-rr td:first-child { font-weight: 700; color: var(--forest); }
.q-table .q-sr td { color: var(--mid); font-size: 12px; padding: 4px 10px 4px 22px; border-bottom-color: transparent; }
.q-totals { border-top: 2px solid var(--border); padding-top: 12px; }
.q-total-line { display: flex; justify-content: flex-end; gap: 28px; font-size: 13px; color: var(--mid); margin-bottom: 4px; }
.q-total-line span:last-child { min-width: 86px; text-align: right; }
.q-grand { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--mint); }
.q-grand-lbl { font-family: var(--ff-head); font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--forest); }
.q-grand-amt { font-family: var(--ff-head); font-size: 44px; font-weight: 900; color: var(--forest); line-height: 1; }
.q-note { font-size: 11px; color: var(--mid); text-align: right; margin-top: 5px; font-style: italic; }
.q-out-foot { background: var(--mint); border-top: 1px solid var(--border); padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.q-out-foot img { height: 26px; object-fit: contain; opacity: .6; }
.q-out-foot span { font-size: 11px; color: var(--mid); }

/* GST TOGGLE */
.gst-row { display: flex; align-items: center; gap: 10px; }
.gst-row .gl { font-size: 14px; font-weight: 500; color: var(--body); }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #ccc; border-radius: 22px; cursor: pointer; transition: background .2s; }
.slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle input:checked + .slider { background: var(--leaf); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

/* QUOTE BOTTOM ACTIONS */
.q-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.q-action-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.65);
}
.footer-top { padding: 60px 0 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .kf-mark { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.footer-col .contact-item svg { width: 15px; height: 15px; stroke: var(--sage); margin-top: 2px; flex-shrink: 0; }
.footer-col .contact-item span { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.5; }
.footer-col .contact-item a { color: rgba(255,255,255,.65); }
.footer-col .contact-item a:hover { color: #fff; }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: #fff; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--leaf); border-radius: 8px;
  padding: 12px 18px; font-size: 13px; font-weight: 500;
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  transform: translateY(60px); opacity: 0;
  transition: transform .3s, opacity .3s; pointer-events: none;
}
.toast.err { border-left-color: #c0392b; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-inner, .container { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .quote-bar-toggle, .quote-inner, .page-hero-content { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .hdr-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── PRINT ── */
@media print {
  .topbar, .site-header, .quote-bar-toggle, .q-actions, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}