/* ════════════════════════════════════════════════════════════════
   LONGHU DESIGN STUDIO — STYLESHEET  (dark edition)
   ════════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg:         #09080A;   /* main background */
  --bg-alt:     #111013;   /* alternate section bg */
  --bg-card:    #151316;   /* card / image block bg */

  --text:       #EAE2D5;   /* primary text */
  --text-muted: #6B6159;   /* muted / labels */
  --border:     #221F20;   /* hairline borders */

  --accent:     #C49A3C;   /* warm gold */
  --accent-dim: #7A5E22;   /* dimmer gold for hovers */

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --pad-x:      clamp(1.5rem, 5vw, 4.5rem);
  --section-y:  clamp(5rem, 10vw, 9rem);
  --gap:        clamp(1.25rem, 3vw, 2rem);
  --max-w:      1320px;
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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


/* ════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem var(--pad-x);
  background: rgba(9, 8, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}

#nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.nav-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-links a {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease !important;
}

.nav-cta:hover {
  color: var(--text) !important;
  border-color: var(--text) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:first-child  { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:last-child   { transform: translateY(-6.5px) rotate(-45deg); }


/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad-x) 5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}


.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 480px;
  display: block;
  filter: drop-shadow(0 0 60px rgba(196, 154, 60, 0.18));
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.hero-title-line {
  display: block;
  color: var(--text);
}

.hero-title-em {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* CTA Button */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 1rem 2.25rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* Services ticker */
.hero-services {
  position: absolute;
  bottom: 3rem;
  right: calc(clamp(1.5rem, 5vw, 4.5rem) + 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-services .dot {
  color: var(--border);
  font-size: 1rem;
  line-height: 0;
}


/* ════════════════════════════════════════════════════════════════
   SHARED SECTION LAYOUT
   ════════════════════════════════════════════════════════════════ */
section {
  padding: var(--section-y) var(--pad-x);
}

.section-header {
  max-width: var(--max-w);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}

.section-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════════
   WORK
   ════════════════════════════════════════════════════════════════ */
#work {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.work-full {
  grid-column: 1 / -1;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  cursor: default;
}

.work-image {
  position: relative;
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.work-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s ease;
}

.work-item:hover .work-image::after {
  background: rgba(196, 154, 60, 0.06);
}

.work-full .work-image      { aspect-ratio: 16 / 7; }
.work-full .work-image--wide { aspect-ratio: 21 / 8; }

.img-label {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(234, 226, 213, 0.1);
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.work-meta h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.work-meta p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 300;
}

.tag {
  flex-shrink: 0;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem;
  margin-top: 0.25rem;
  white-space: nowrap;
}


/* ════════════════════════════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════════════════════════════ */
#gallery {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--gap);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.gallery-img {
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: border-color 0.3s ease, transform 0.35s ease;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item:hover .gallery-img {
  transform: scale(0.96);
  border-color: var(--accent-dim);
}

.gallery-item p {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════
   PROCESS
   ════════════════════════════════════════════════════════════════ */
#process {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.process-step {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
}

/* Highlight the top border on hover */
.process-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.process-step:hover::before {
  width: 100%;
}

.step-num {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.process-step p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ════════════════════════════════════════════════════════════════
   PHILOSOPHY / ABOUT
   ════════════════════════════════════════════════════════════════ */
#about {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

blockquote::before {
  content: '"';
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.principles-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.375rem;
}

.principles ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0;
}

.principles li {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.2s ease;
}

.principles li:hover {
  color: var(--accent);
}


/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */
#contact {
  text-align: center;
  background: var(--bg-alt);
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

#contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.5rem;
}

#contact > .contact-inner > p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
}

.contact-social {
  margin-top: 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-social a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-social a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}


/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.625rem var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════════
   FADE-IN ANIMATION
   ════════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 700px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 199;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .hero-services {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-full {
    grid-column: 1;
  }

  .work-full .work-image {
    aspect-ratio: 4 / 3;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles ul {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
