/* ============================================================
   RENOBIT RENOVATIONS — Global Design System
   renobit.ca | 902-449-4322 | Dartmouth NS
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --black:   #0a0908;
  --black2:  #111010;
  --warm:    #f5f0e8;
  --cream:   #ede8de;
  --muted:   rgba(245,240,232,0.55);
  --orange:  #e8541a;
  --orange2: #c94210;
  --display: 'Bebas Neue', sans-serif;
  --body:    'DM Sans', sans-serif;
  --nav-h:   64px;
  --r:       2px;
  --t:       0.2s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--body); background: var(--black); color: var(--warm); line-height: 1.65; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; }
ul,ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input,select,textarea { font-family: inherit; font-size: 16px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 10px; }
.section-title { font-family: var(--display); font-size: clamp(36px,5vw,60px); letter-spacing: 0.03em; line-height: 0.95; }
.section-sub   { font-size: 16px; color: var(--muted); max-width: 560px; margin-top: 14px; line-height: 1.7; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.08em;
  padding: 14px 28px; min-height: 48px; border: none; text-decoration: none;
  border-radius: var(--r); transition: all var(--t); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--warm); border: 1.5px solid rgba(245,240,232,0.3); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-white { background: var(--warm); color: var(--black); }
.btn-white:hover { background: #fff; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
  background: rgba(10,9,8,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,84,26,0.15); transition: background var(--t);
}
#navbar.scrolled { background: rgba(10,9,8,0.98); }
.nav-logo { font-family: var(--display); font-size: 26px; letter-spacing: 0.05em; color: var(--warm); text-decoration: none; }
.nav-logo em { color: var(--orange); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color var(--t); position: relative;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--orange); transition: width 0.25s; }
.nav-links a:hover { color: var(--warm); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--display); font-size: 16px; letter-spacing: 0.06em;
  color: #fff; background: var(--orange); padding: 9px 20px; text-decoration: none;
  border-radius: var(--r); transition: background var(--t); white-space: nowrap;
}
.nav-cta:hover { background: var(--orange2); }

/* ── HAMBURGER ──────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; padding: 8px; min-width: 44px; min-height: 44px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--warm); border-radius: 1px; transition: transform 0.28s, opacity 0.22s; transform-origin: center; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ──────────────────────────────────────────── */
#mob-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(10,9,8,0.98); backdrop-filter: blur(20px); z-index: 999;
  flex-direction: column; align-items: center; justify-content: space-evenly;
  padding: 12px 24px; overflow: hidden;
}
#mob-nav.is-open { display: flex; }
#mob-nav a {
  font-family: var(--display); font-size: clamp(20px,5.5vh,34px);
  letter-spacing: 0.06em; color: var(--warm); text-decoration: none;
  padding: 10px 24px; width: 100%; max-width: 340px; text-align: center;
  border-bottom: 0.5px solid rgba(255,255,255,0.08); flex-shrink: 0;
  transition: color var(--t);
}
#mob-nav a:last-of-type { border-bottom: none; }
#mob-nav a:hover, #mob-nav a:active { color: var(--orange); }
#mob-nav a.nav-mob-cta { background: var(--orange); color: #fff; border: none !important; margin-top: 8px; font-size: clamp(18px,4.5vh,26px); }
#mob-nav a.nav-mob-phone { color: var(--orange); border: 1px solid rgba(232,84,26,0.35) !important; font-size: clamp(15px,4vh,22px); }

/* ── WHATSAPP ───────────────────────────────────────────────── */
#wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
#wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(37,211,102,0.5); }
#wa-tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--black2); color: var(--warm); font-size: 12px; font-weight: 500;
  padding: 6px 10px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s; border: 1px solid rgba(245,240,232,0.1);
}
#wa-btn:hover #wa-tip { opacity: 1; }

/* ── TOAST ──────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 32px; left: 50%; z-index: 9999;
  transform: translateX(-50%) translateY(20px);
  background: var(--black2); color: var(--warm); padding: 12px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 500; border-left: 3px solid var(--orange);
  opacity: 0; pointer-events: none; max-width: 90vw; text-align: center;
  transition: opacity 0.3s, transform 0.3s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SECTION BASE ───────────────────────────────────────────── */
.section { padding: 96px 6%; }
.section-head { margin-bottom: 52px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
#site-footer { background: var(--black2); border-top: 1px solid rgba(245,240,232,0.07); padding: 64px 6% 28px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ft-logo { font-family: var(--display); font-size: 28px; letter-spacing: 0.05em; color: var(--warm); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.ft-logo em { color: var(--orange); font-style: normal; }
.ft-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 260px; }
.ft-col h4 { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; margin-bottom: 16px; }
.ft-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 9px; transition: color var(--t); }
.ft-col a:hover { color: var(--orange); }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(245,240,232,0.07); font-size: 12px; color: rgba(245,240,232,0.3); }
.ft-bottom a { color: inherit; text-decoration: none; }
.ft-bottom a:hover { color: var(--orange); }

/* ── REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── BACK TO TOP ────────────────────────────────────────────── */
#btt {
  position: fixed; bottom: 92px; right: 24px; z-index: 800;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,9,8,0.8); border: 1px solid rgba(245,240,232,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--warm); text-decoration: none; font-size: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), background var(--t), transform var(--t);
}
#btt.show { opacity: 1; pointer-events: all; }
#btt:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.accent     { color: var(--orange); }
.text-muted { color: var(--muted); }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { gap: 18px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex !important; }
  .section { padding: 72px 6%; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  #btt  { bottom: 84px; right: 16px; }
  #wa-btn { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .section { padding: 56px 5%; }
  .ft-grid { grid-template-columns: 1fr; gap: 24px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
