/* ==========================================================================
   Bishan Enterprises Limited — Stylesheet
   Theme: Natural light — ivory, stone, clay, sage
   ========================================================================== */

:root {
  --ivory-50: #faf7f1;
  --ivory-100: #f2ece0;
  --sand-200: #e8dfc9;
  --stone-300: #d8cdb2;
  --stone-500: #a99d81;
  --ink-900: #2f2b22;
  --ink-700: #55503f;
  --ink-500: #79725c;
  --white: #ffffff;
  --clay-600: #a5643f;
  --clay-500: #bd7c50;
  --clay-100: #f2e2d3;
  --sage-600: #74805f;
  --sage-500: #8b9873;
  --sage-100: #e7ebdc;
  --deep-900: #2c2f24;
  --deep-800: #383c2e;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ivory-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-900);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: 14px;
}

section { position: relative; }

.section-pad { padding: 100px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clay-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--clay-500); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.btn-outline:hover { background: var(--ink-900); color: var(--white); transform: translateY(-2px); }

.btn-outline-dark {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.btn-outline-dark:hover { background: var(--ink-900); color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(47, 43, 34, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink-900);
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--clay-600);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--ink-700);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clay-600);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-900);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 24px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-900);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--ivory-50);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(47, 43, 34, 0.12);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  background: linear-gradient(160deg, var(--ivory-100) 0%, var(--ivory-50) 45%, var(--sand-200) 100%);
  position: relative;
  overflow: hidden;
  color: var(--ink-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-copy h1 {
  color: var(--ink-900);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--clay-600);
}

.hero-copy p {
  font-size: 1.12rem;
  color: var(--ink-700);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
}
.hero-art svg { width: 100%; height: auto; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .dot-track {
  width: 2px;
  height: 34px;
  background: var(--stone-300);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.scroll-cue .dot-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clay-600);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ==========================================================================
   About
   ========================================================================== */

.about .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; gap: 40px; }
}

.about-art {
  background: var(--ivory-100);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 32px;
}
.about-art svg { width: 100%; height: auto; }

.about-copy p {
  color: var(--ink-700);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: var(--white);
}
.pillar .pillar-icon { width: 30px; height: 30px; margin-bottom: 12px; color: var(--clay-600); }
.pillar h4 { font-size: 0.98rem; margin-bottom: 6px; }
.pillar p { font-size: 0.86rem; color: var(--ink-500); }

/* ==========================================================================
   Focus areas (replaces property listing)
   ========================================================================== */

.focus { background: var(--ivory-100); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .focus-grid { grid-template-columns: 1fr; }
}

.focus-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: var(--transition);
}
.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(47, 43, 34, 0.08);
  border-color: var(--clay-500);
}

.focus-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clay-100);
  color: var(--clay-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.focus-icon svg { width: 24px; height: 24px; }
.focus-card:nth-child(2) .focus-icon { background: var(--sage-100); color: var(--sage-600); }
.focus-card:nth-child(3) .focus-icon { background: var(--stone-300); color: var(--ink-900); }

.focus-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.focus-card p { color: var(--ink-500); font-size: 0.95rem; }

.focus-note {
  text-align: center;
  margin-top: 44px;
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
@media (max-width: 940px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .approach-grid { grid-template-columns: 1fr; }
}

.approach-card {
  position: relative;
  padding: 32px 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--sand-200);
  transition: var(--transition);
}
.approach-card:hover {
  border-color: var(--clay-500);
  box-shadow: 0 14px 30px rgba(47, 43, 34, 0.06);
  transform: translateY(-4px);
}
.approach-num {
  counter-increment: step;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--clay-600);
  font-weight: 700;
  margin-bottom: 16px;
}
.approach-num::before {
  content: "0" counter(step);
}
.approach-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.approach-card p { font-size: 0.9rem; color: var(--ink-500); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
  background: var(--white);
}
.contact-card:hover { border-color: var(--clay-500); box-shadow: 0 14px 30px rgba(47, 43, 34, 0.06); }
.contact-card .c-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clay-100);
  color: var(--clay-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.contact-card .c-icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { color: var(--ink-500); font-size: 0.94rem; }
.contact-card a.c-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 2px solid var(--clay-500);
  padding-bottom: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--deep-900);
  color: var(--stone-300);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; }

.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--ivory-50);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col ul li a:hover { color: var(--ivory-50); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clay-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 8px 20px rgba(47, 43, 34, 0.25);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--clay-500); }
.back-to-top svg { width: 18px; height: 18px; }
