/* ============================================================
   WALLCO HOLDINGS — GLOBAL STYLESHEET
   ============================================================ */

:root {
  --ink:          #1C1C1C;
  --ink-soft:     #4A4A4A;
  --ink-muted:    #8A8A8A;
  --stone:        #F5F3EF;
  --stone-mid:    #E8E4DC;
  --linen:        #FAF9F6;
  --accent:       #7B6E5E;
  --accent-light: #C4B8A8;
  --white:        #FFFFFF;
  --ff-display:   'Cormorant Garamond', Georgia, serif;
  --ff-body:      'Inter', system-ui, sans-serif;
  --max:          1240px;
  --nav-h:        68px;
  --radius:       2px;
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--linen);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── UTILITY ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: 96px 40px; }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* ── scroll-margin so anchor links land with breathing room ── */
[id] { scroll-margin-top: calc(var(--nav-h) + 80px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(250,249,246,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; align-items: center;
}
.nav.scrolled {
  border-color: var(--stone-mid);
  box-shadow: 0 1px 16px rgba(28,28,28,0.06);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
/* Logo bigger, transparent bg shows correctly */
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--accent); transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-cta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  background: var(--ink); color: var(--white);
  padding: 9px 22px; border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent); }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  color: var(--ink); z-index: 250;
}
.nav-hamburger svg { pointer-events: none; transition: opacity 0.2s; }

/* ============================================================
   MOBILE NAV — elegant full-screen overlay
   ============================================================ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 210;
  background: #111;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 48px 60px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-nav.open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
/* Close button inside overlay */
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: white; }
.mobile-nav-close svg { pointer-events: none; }

.mobile-nav-links { list-style: none; margin-bottom: 48px; }
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-display);
  font-size: clamp(32px, 8vw, 48px); font-weight: 300; line-height: 1;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 20px 0;
  transition: color 0.25s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a[aria-current="page"] { color: white; }
.mobile-nav-links a[aria-current="page"] { font-style: italic; }
.mobile-nav-arrow {
  font-size: 18px; opacity: 0.3; transition: opacity 0.2s, transform 0.2s;
}
.mobile-nav-links a:hover .mobile-nav-arrow { opacity: 0.7; transform: translateX(4px); }

.mobile-nav-footer {
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-cta {
  display: inline-block; text-align: center;
  font-family: var(--ff-body); font-size: 14px; font-weight: 500;
  background: var(--linen); color: var(--ink);
  padding: 16px 28px; border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-nav-cta:hover { background: var(--stone-mid); }
.mobile-nav-contact {
  font-size: 12px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em; text-align: center; margin-top: 4px;
}
.mobile-nav-contact a {
  color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
  white-space: nowrap; display: inline-block;
}
.mobile-nav-contact a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
  font-family: var(--ff-body); font-weight: 500;
  font-size: 13px; letter-spacing: 0.04em;
  padding: 13px 28px; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer; border: 1px solid transparent;
  /* allow text to wrap naturally */
  white-space: normal; line-height: 1.4;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-light { background: var(--linen); color: var(--ink); border-color: var(--stone-mid); }
.btn-light:hover { background: var(--stone-mid); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--stone-mid);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
/* Darker outline for CTA sections */
.btn-outline-dark {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--accent-light);
}
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: none; color: var(--ink-soft); padding: 0;
  border-bottom: 1px solid var(--accent-light); border-radius: 0;
  padding-bottom: 2px; font-size: 13px; font-weight: 400;
  display: inline; white-space: normal;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}

/* Logo plaque */
.footer-logo-wrap {
  display: inline-block;
  background: white;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 18px;
  margin-bottom: 20px;
  line-height: 0;
}
.footer-logo-wrap img {
  height: 48px; width: auto;
  display: block;
}

.footer-brand p {
  font-size: 13px; line-height: 1.75; max-width: 230px;
  color: rgba(255,255,255,0.45);
}
.footer-col-head {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-contact-item { margin-bottom: 12px; }
.footer-contact-item span {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 3px;
}
.footer-contact-item a, .footer-contact-item p {
  font-size: 13px; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
}
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   WhatsApp FAB — expandable enquiry bubble
   ============================================================ */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.wa-fab__btn {
  order: 2; pointer-events: auto; width: 58px; height: 58px; border: 0;
  border-radius: 50%; background: #25D366; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-fab__btn:hover { transform: scale(1.08); box-shadow: 0 6px 26px rgba(37,211,102,0.5); }
.wa-fab__btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.wa-fab__bubble {
  order: 1; width: 300px; padding: 16px; border-radius: 12px;
  background: var(--white); box-shadow: 0 8px 40px rgba(28,28,28,0.16);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px) scale(0.97); transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.wa-fab__bubble.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.wa-fab__bubble-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); padding-bottom: 10px;
  border-bottom: 1px solid var(--stone-mid);
}
.wa-fab__option {
  display: block; padding: 10px 12px; border-radius: 8px;
  background: var(--stone); color: var(--ink); text-decoration: none;
  font-size: 13px; line-height: 1.45;
  transition: background 0.2s, color 0.2s;
}
.wa-fab__option:hover { background: var(--accent); color: var(--white); }

/* ============================================================
   RESPONSIVE GLOBALS
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding: 48px 20px 28px; }
  .footer-bottom { display: block; }
  .footer-bottom > span { display: block; }
  .footer-uen { margin-top: 4px; }
  .footer-bottom > span:last-child { margin-top: 18px; }
  .footer-separator { display: none; }
  .wa-fab { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  .wa-fab__bubble { width: calc(100vw - 80px); }
}
