/* === FUYUNIWA LLC — Warm Luxury Design System === */

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

:root {
  --bg: #FEFCF8;
  --surface: #FFFFFF;
  --alt: #FAF7F2;
  --text: #1C1917;
  --secondary: #57534E;
  --muted: #A8A29E;
  --gold: #B8860B;
  --copper: #D97706;
  --deep: #292524;
  --rose: #BE123C;
  --border: #E7E5E4;

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

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

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

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus-visible {
  color: var(--copper);
}

::selection {
  background: rgba(184, 134, 11, 0.2);
  color: var(--text);
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 1.5rem 0;
}

/* --- Gold decorative elements --- */
.gold-bullet {
  color: var(--gold);
  margin-right: 0.5rem;
}

.rose-accent {
  color: var(--rose);
  font-size: 0.75rem;
  margin: 0 0.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 10rem 0 8rem;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-dropcap {
  position: absolute;
  top: -3rem;
  left: 2rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-content .tagline {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.25rem;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold);
  color: var(--surface);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.hero-flourish {
  position: absolute;
  bottom: 0;
  right: 2rem;
  opacity: 0.06;
  pointer-events: none;
}

/* --- Services Section --- */
.services {
  background: var(--surface);
}

.services .section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.services .section-head h2 {
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: 1rem;
}

.services .section-head p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg);
  border-top: 3px solid var(--gold);
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-card .card-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-card .card-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
}

/* --- About Section --- */
.about {
  background: var(--bg);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  padding: 2.5rem 0;
  margin-bottom: 3rem;
  position: relative;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.about-body {
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--secondary);
}

.about-body p {
  margin-bottom: 1.5rem;
}

.rose-separator {
  text-align: center;
  color: var(--rose);
  font-size: 0.75rem;
  margin: 2.5rem 0;
  letter-spacing: 0.5em;
}

/* --- Metrics Section --- */
.metrics {
  background: var(--surface);
  text-align: center;
}

.metrics-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.metric-dot {
  color: var(--gold);
  font-size: 0.5rem;
  opacity: 0.5;
}

/* --- Process Section --- */
.process {
  background: var(--alt);
}

.process .section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.process .section-head h2 {
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: 1rem;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-card {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition);
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-3px);
}

.process-card .fold-flap {
  background: var(--deep);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.process-card .fold-flap::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
}

.process-card .step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.process-card .fold-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.process-card .fold-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.process-card .fold-body p {
  font-size: 0.9375rem;
  color: var(--secondary);
  margin-bottom: 0;
}

/* --- Expertise Section --- */
.expertise {
  background: var(--bg);
}

.expertise .section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.expertise .section-head h2 {
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: 1rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.expertise-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text);
  transition: color var(--transition);
}

.expertise-item:hover {
  color: var(--gold);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--deep);
  padding: 6rem 0;
  text-align: center;
}

.cta-section .gold-rule {
  margin: 0 auto 2rem;
}

.cta-section h2 {
  font-family: var(--font-serif);
  color: var(--bg);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.25rem;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--gold);
  color: var(--deep);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--secondary);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom .footer-legal a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom .footer-legal a:hover {
  color: var(--gold);
}

/* --- Legal Pages (Privacy / Terms) --- */
.legal-page {
  padding-top: 6rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
}

.legal-sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.legal-toc {
  list-style: none;
}

.legal-toc li {
  margin-bottom: 0.5rem;
}

.legal-toc a {
  font-size: 0.85rem;
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--gold);
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content .effective-date {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.legal-content section {
  margin-bottom: 3rem;
}

.legal-content section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content section p,
.legal-content section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.legal-content section ul {
  list-style: none;
  padding-left: 0;
}

.legal-content section ul li::before {
  content: '\2666';
  color: var(--gold);
  margin-right: 0.5rem;
  font-size: 0.5rem;
  vertical-align: middle;
}

/* --- Scroll Fade-in --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--surface);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

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

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

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .metrics-row {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transition: right var(--transition);
    gap: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

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

  .hero-dropcap {
    font-size: 5rem;
    top: -2rem;
    left: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .process-cards {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
