/* =========================================================================
   Chyh Leng Low — personal site
   Design: warm near-black, cream text, gold accents, elegant serif display.
   Rebuilt to match the original Weebly design.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg:      #0d0b0a;
  --bg-2:    #14100e;
  --bg-3:    #1c1613;
  --text:    #ece7df;
  --muted:   #a89f92;
  --gold:    #c9a86a;
  --gold-2:  #e3caa0;
  --line:    rgba(236, 231, 223, 0.14);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', -apple-system, 'Segoe UI', sans-serif;
  --maxw:    1180px;
  --nav-h:   76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.section h2 { font-size: 2.6rem; margin-bottom: 8px; letter-spacing: .01em; }
.lede { color: var(--muted); font-size: 1.15rem; font-weight: 300; letter-spacing: .03em; line-height: 1.8; max-width: none; }
.divider { width: 54px; height: 1px; background: var(--gold); margin: 22px 0 34px; opacity: .8; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 400;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 30px; border: 1px solid var(--gold); color: var(--gold-2);
  border-radius: 2px; transition: all .3s ease; cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--gold); color: #17120c; }
.btn + .btn { margin-left: 14px; }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.scrolled {
  background: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 64px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand img { height: 46px; width: auto; transition: height .35s ease; }
.site-header.scrolled .brand img { height: 38px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; list-style: none; }
.nav > li > a {
  display: block; padding: 10px 16px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  color: var(--text);
}
.nav > li > a:hover, .nav > li.has-drop:hover > a { color: var(--gold-2); }
.nav > li > a .caret { font-size: 9px; opacity: .6; margin-left: 5px; }

/* dropdowns */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 210px; background: rgba(20, 16, 14, 0.98); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 4px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all .25s ease; box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li { list-style: none; }
.dropdown a {
  display: block; padding: 10px 22px; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 300;
}
.dropdown a:hover { color: var(--gold-2); background: rgba(201,168,106,.07); }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 26px; cursor: pointer; line-height: 1;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: #000;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/hero.jpg') left center / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,6,5,0) 0%, rgba(8,6,5,.3) 45%, rgba(8,6,5,.8) 100%),
    linear-gradient(0deg, rgba(8,6,5,.7) 0%, rgba(8,6,5,0) 40%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-inner .wrap { display: flex; justify-content: flex-end; }
.hero-content { width: 52%; max-width: 560px; text-align: center; }
.hero-monogram { width: 100%; max-width: 470px; margin: 0 auto 6px; }
.hero-tag {
  font-family: var(--sans); font-weight: 300; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); font-size: 13px; margin-left: 6px;
}
.hero-cta { margin-top: 40px; }
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--muted); font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; opacity: .8; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(8px);} }

/* =========================================================================
   HOME teaser cards
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px;
  padding: 40px 32px; transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201,168,106,.45); }
.card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
.card .more { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: #0a0807; border-top: 1px solid var(--line); padding: 54px 0 34px; text-align: center; }
.social { display: flex; justify-content: center; gap: 18px; margin-bottom: 22px; }
.social a {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.social a:hover { color: var(--gold-2); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.foot-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; margin-bottom: 6px; }
.foot-meta { color: var(--muted); font-size: 12.5px; letter-spacing: .08em; }
.foot-meta a { color: var(--gold); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: rgba(13,11,10,.98); backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--nav-h) + 10px) 0 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s ease;
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav > li > a { padding: 14px 30px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: rgba(0,0,0,.25); padding: 0; min-width: 0;
    display: none;
  }
  .has-drop.expanded .dropdown { display: block; }
  .dropdown a { padding-left: 46px; }
  .hero-inner .wrap { justify-content: center; }
  .hero-content { width: 100%; max-width: none; }
  .hero-monogram { width: 84%; }
  .section h2 { font-size: 2.1rem; }
  .section { padding: 70px 0; }
}

/* =========================================================================
   INNER PAGES
   ========================================================================= */
body.inner .site-header { background: rgba(13,11,10,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }

.page-banner { padding: calc(var(--nav-h) + 68px) 0 56px; background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; }
.page-banner h1 { font-size: 3rem; letter-spacing: .01em; }
.page-banner .divider { margin: 20px auto 0; }
.page-banner p { color: var(--muted); max-width: 62ch; margin: 16px auto 0; }

.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 22px; color: #d8d2c8; }
.prose h3 { font-size: 1.7rem; color: var(--text); margin: 40px 0 14px; }
.prose ul { margin: 0 0 22px 22px; color: #d8d2c8; }
.prose ul li { margin-bottom: 8px; }
.prose .btn-row { margin-top: 34px; }

/* two-column with portrait */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split img { border-radius: 5px; border: 1px solid var(--line); }
.split .tag { color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* video grid */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.video figure { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); background:#000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 14px; font-family: var(--serif); font-size: 1.28rem; color: var(--text); line-height: 1.3; }
.video .kind { display:block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

/* gallery */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-grid img { width: 100%; margin-bottom: 18px; border-radius: 4px; border: 1px solid var(--line); break-inside: avoid; cursor: zoom-in; }
.gallery-cat { font-family: var(--serif); font-size: 1.9rem; margin: 40px 0 22px; }
.gallery-cat:first-child { margin-top: 0; }

/* services overview */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc { background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 36px 34px; transition: border-color .3s, transform .3s; }
.svc:hover { border-color: rgba(201,168,106,.4); transform: translateY(-4px); }
.svc h3 { font-size: 1.7rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }

/* forms */
.form { max-width: 640px; margin: 0 auto; }
.form .row { margin-bottom: 22px; }
.form label { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.form label .req { color: var(--gold); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--sans); font-size: 16px; padding: 13px 15px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .choices { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.form .choices label { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: #d8d2c8; margin: 0; cursor: pointer; }
.form .choices input { width: auto; accent-color: var(--gold); }
.form .note { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.form button { width: 100%; }
.form-status { margin-top: 18px; text-align: center; font-size: 15px; }

.hint { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .video-grid, .svc-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .page-banner h1 { font-size: 2.3rem; }
}
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

/* =========================================================================
   GALLERY — tidy uniform tiles with captions
   ========================================================================= */
.gallery-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.gallery-tiles.portraits { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { margin: 0; }
.tile .frame {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px;
  border: 1px solid var(--line); background: var(--bg-3);
  cursor: zoom-in;
}
.gallery-tiles.portraits .tile .frame { aspect-ratio: 3 / 4; }
.gallery-empty {
  grid-column: 1 / -1; margin: 0; padding: 40px 0;
  font-family: var(--sans); font-weight: 300; font-style: italic;
  color: var(--muted); text-align: center;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.tile:hover img { transform: scale(1.045); }
.tile figcaption {
  margin-top: 11px; font-family: var(--sans); font-weight: 300;
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 6, 5, .95); opacity: 0;
  transition: opacity .28s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-stage {
  max-width: 90vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lightbox img {
  max-width: 90vw; max-height: 78vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
}
.lightbox .lb-cap {
  color: var(--muted); font-family: var(--sans); font-weight: 300;
  font-size: 14px; line-height: 1.4; text-align: center; max-width: 640px;
  min-height: 1.4em;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: none; color: var(--cream);
  cursor: pointer; opacity: .65; transition: opacity .2s ease;
  line-height: 1; user-select: none; font-family: var(--serif);
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { opacity: 1; }
.lightbox .lb-close { top: 22px; right: 30px; font-size: 38px; }
.lightbox .lb-prev, .lightbox .lb-next {
  top: 50%; transform: translateY(-50%); font-size: 52px; padding: 12px 20px;
}
.lightbox .lb-prev { left: 10px; }
.lightbox .lb-next { right: 10px; }
@media (max-width: 560px) {
  .gallery-tiles, .gallery-tiles.portraits { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tile figcaption { font-size: 12px; }
  .lightbox img { max-height: 70vh; }
  .lightbox .lb-prev, .lightbox .lb-next { font-size: 34px; padding: 8px 12px; }
  .lightbox .lb-close { top: 14px; right: 18px; font-size: 32px; }
}
