/* ═══════════════════════════════════════════════════════
   花語花舍 - Fa Yee Fa Seh (Florist)
   Design: Dark theme, rose-gold accent, editorial layouts
   DIALS: VARIANCE=7, MOTION=6, DENSITY=3
   ZERO em-dashes. NO Inter. NO beige/cream.
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --rose: #C9A48B;
  --rose-glow: rgba(201, 164, 139, 0.15);
  --rose-soft: rgba(201, 164, 139, 0.08);
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-elevated: #1A1A1A;
  --surface-high: #222222;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.10);
  --text: #F5F0EB;
  --text-secondary: #9E9790;
  --text-muted: #6B6560;
  --font-display: 'Outfit', 'Noto Sans HK', system-ui, sans-serif;
  --font-body: 'Noto Sans HK', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ── Typography ── */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rose);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--transition-smooth);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  transition: color 0.2s var(--transition-smooth);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active {
  border-bottom-color: var(--rose);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
}
.btn-primary {
  background: var(--rose);
  color: var(--bg);
}
.btn-primary:hover {
  background: #D4B39D;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.btn-ghost:active {
  transform: scale(0.98);
}

/* ── Section Spacing ── */
.section {
  padding: 6rem 2rem;
}
.section-xl {
  padding: 8rem 2rem;
}
.section-tight {
  padding: 4rem 2rem;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Image Styles ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.img-portrait {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
}
.img-square {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}
.img-landscape {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.card:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}

/* ── Divider ── */
.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Text utilities ── */
.text-rose { color: var(--rose); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.asymmetric-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.asymmetric-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--transition-smooth);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ── Hero split layout ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
}
.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Stats row ── */
.stats-row {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 200;
  line-height: 1;
  color: var(--rose);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ── Image hover overlay ── */
.img-overlay-hover {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.img-overlay-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 164, 139, 0.2);
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
}
.img-overlay-hover:hover::after {
  opacity: 1;
}
.img-overlay-hover img {
  transition: transform 0.6s var(--transition-smooth);
}
.img-overlay-hover:hover img {
  transform: scale(1.03);
}

/* ── Price card ── */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  transition: border-color 0.3s var(--transition-smooth);
}
.price-card:hover {
  border-color: var(--border-strong);
}
.price-card.featured {
  border-color: var(--rose);
  background: linear-gradient(135deg, var(--surface), var(--rose-soft));
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--rose);
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Gallery grid ── */
.gallery-masonry {
  columns: 3;
  column-gap: 1.5rem;
}
.gallery-masonry > * {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ── Form styles ── */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--transition-smooth);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--rose);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-select {
  width: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9790' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ── Contact info row ── */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--rose);
  font-size: 1.1rem;
}

/* ── Team card ── */
.team-card {
  text-align: left;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s var(--transition-smooth);
}
.team-card:hover img {
  filter: grayscale(0%);
}

/* ── Service icon row ── */
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  color: var(--rose);
  font-size: 1.3rem;
}

/* ── Testimonial ── */
.testimonial {
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  max-width: 50ch;
}

/* ── Page header ── */
.page-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual {
    aspect-ratio: 16/9;
    order: -1;
  }
  .hero-content {
    padding: 3rem 2rem;
  }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .asymmetric-2-1,
  .asymmetric-1-2 {
    grid-template-columns: 1fr;
  }
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .section { padding: 4rem 1.25rem; }
  .section-xl { padding: 5rem 1.25rem; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats-row {
    gap: 2rem;
  }
  .stat-value { font-size: 2rem; }
  .hero-content { padding: 2rem 1.25rem; }
  .gallery-masonry {
    columns: 1;
  }
  .btn {
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .img-overlay-hover img {
    transition: none;
  }
  .img-overlay-hover:hover img {
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ── Selection ── */
::selection {
  background: var(--rose);
  color: var(--bg);
}
