
/* ========================================
   WenHao Consulting
   style.css
======================================== */

/* 1. Base */

:root {
  --ink: #242424;
  --kinari: #F2EDE3;
  --vermilion: #B73A32;
  --gray: #A9A49A;
  --page-gutter: clamp(24px, 5vw, 76px);
  --header-height: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--kinari);
  font-family:
    "Inter",
    "Noto Sans JP",
    "Noto Sans SC",
    "Noto Sans HK",
    sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

::selection {
  color: #fff;
  background: var(--vermilion);
}


/* ========================================
   2. Header
======================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 12px var(--page-gutter);
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0)
  );
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(36, 36, 36, 0.97);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.brand img {
  width: 76px;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 42px);
}

.main-nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

.main-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.nav-contact span {
  color: #fff;
}


/* ========================================
   3. Hero
======================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.3) 52%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding:
    calc(var(--header-height) + 28px)
    var(--page-gutter)
    56px;
}

/* Hero Label */

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 13px;
  color: #fff;
  background: var(--vermilion);
  border: 1px solid var(--vermilion);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.hero-description {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: gap 0.25s ease;
}

.hero-link:hover {
  gap: 32px;
}

.hero-link span {
  font-size: 17px;
}


/* ========================================
   4. Common Sections
======================================== */

.content-section {
  min-height: 100vh;
  min-height: 100svh;
  padding: 76px var(--page-gutter);
  scroll-margin-top: 0;
}

/* Section Labels */

.section-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  color: #fff;
  background: var(--vermilion);
  border: 1px solid var(--vermilion);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.section-intro {
  max-width: 700px;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.9;
}

.content-section p {
  line-height: 1.9;
}


/* ========================================
   5. Services
======================================== */

.services {
  min-height: auto;
  padding-top: 20px;
  padding-bottom: 100px;
  background: var(--kinari);
}

.services > .section-label {
  margin-bottom: 8px;
}

.services h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.services-intro {
  margin: 8px 0 20px;
  font-size: 14px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  width: 100%;
  max-width: 1200px;
}

.service-item {
  position: relative;
  padding: 17px 0 18px;
  border-top: 1px solid rgba(36, 36, 36, 0.22);
}

.service-number {
  display: block;
  margin-bottom: 5px;
  color: var(--vermilion);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 500;
  line-height: 1.55;
}

.service-item ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.85;
}

.service-item li {
  padding-left: 2px;
  margin-bottom: 1px;
}


/* ========================================
   6. About
======================================== */

.about {
  padding: 20px 0 34px;
  background: #E9E3D8;
}

.about-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-gutter);
}

/* About Top */

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 52px;
}

.about-text {
  min-width: 0;
}

.about-text h2 {
  margin: 0 0 24px;
}

.about-text p {
  margin: 0 0 16px;
  line-height: 1.9;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.about-image img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
}

/* About Profile */

.about-profile {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
}

/* Profile Photo and Movie */

.about-profile-media {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.about-profile-media img,
.about-profile-media video {
  display: block;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* Profile Text */

.about-profile-text {
  flex: 1;
  min-width: 0;
}

.about-profile-text p {
  margin: 0 0 14px;
  line-height: 1.9;
}


/* ========================================
   7. Contact
======================================== */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px var(--page-gutter) 34px;
  background: var(--ink);
  color: var(--kinari);
}

.contact > .section-label {
  align-self: flex-start;
  margin: 0 0 12px;
}

.contact-content {
  width: 100%;
  max-width: 800px;
  margin: 0;
  align-self: flex-start;
}

.contact-content h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.2;
  font-weight: 500;
}

.contact-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(242, 237, 227, 0.8);
}

.contact-content .contact-lead {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--kinari);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 237, 227, 0.25);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--vermilion);
  color: var(--kinari);
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-links a span {
  color: var(--vermilion);
}

.contact-links a:hover {
  color: var(--gray);
}


/* ========================================
   8. Footer
======================================== */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--page-gutter);
  color: var(--kinari);
  background: var(--ink);
  border-top: 1px solid rgba(242, 237, 227, 0.18);
}

.site-footer > a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-footer p {
  margin: 0;
  color: #C7C2B9;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-period {
  color: var(--vermilion);
}


/* ========================================
   9. Tablet
======================================== */

@media (max-width: 900px) {

  :root {
    --header-height: 88px;
    --page-gutter: 32px;
  }

  .brand img {
    width: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 13px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .main-nav .nav-contact {
    gap: 6px;
    padding: 8px 10px;
  }

  .services {
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .service-list {
    gap: 0 28px;
  }

  .service-item {
    padding: 18px 0;
  }

  .service-item h3 {
    font-size: 17px;
  }

  .service-item ul {
    font-size: 14px;
    line-height: 1.9;
  }

  .about-wrapper {
    padding: 0 28px;
  }

  .about-top {
    gap: 32px;
    margin-bottom: 44px;
  }

  .about-profile {
    gap: 28px;
  }

  .about-profile-media {
    gap: 14px;
  }

  .about-profile-media img,
  .about-profile-media video {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }

  .contact {
    padding-top: 20px;
    padding-bottom: 34px;
  }
}


/* ========================================
   10. Mobile
======================================== */

@media (max-width: 680px) {

  :root {
    --header-height: 76px;
    --page-gutter: 24px;
  }

  .site-header {
    min-height: var(--header-height);
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 48px;
  }

  .brand-name {
    display: none;
  }

  .main-nav {
    flex: 1;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .main-nav .nav-contact {
    padding: 4px 7px;
  }

  /* Hero */

  .hero {
    align-items: center;
  }

  .hero-content {
    padding: 120px 24px 64px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: 1.5;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-link {
    margin-top: 26px;
    font-size: 11px;
  }

  /* Common Sections */

  .content-section {
    min-height: auto;
    padding: 64px 24px;
  }

  /* Services */

  .services {
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .services > .section-label {
    margin-bottom: 8px;
  }

  .services h2 {
    font-size: 29px;
  }

  .services-intro {
    margin: 8px 0 18px;
    font-size: 13px;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-item {
    padding: 19px 0;
  }

  .service-item h3 {
    font-size: 17px;
    line-height: 1.6;
  }

  .service-item ul {
    font-size: 13px;
    line-height: 1.8;
  }

  /* About */

  .about {
    display: block;
    padding: 30px 0 40px;
  }

  .about-wrapper {
    padding: 0 var(--page-gutter);
  }

  .about-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
  }

  .about-text {
    width: 100%;
  }

  .about-text .section-label {
    margin-bottom: 10px;
  }

  .about-text h2 {
    font-size: 32px;
  }

  .about-text .section-intro {
    font-size: 15px;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-profile {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .about-profile-media {
    justify-content: center;
    gap: 14px;
  }

  .about-profile-media img,
  .about-profile-media video {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }

  .about-profile-text {
    width: 100%;
  }

  .about-profile-text p {
    font-size: 12px;
  }

  /* Contact */

  .contact {
    align-items: stretch;
  }

  .contact-content h2 {
    margin-bottom: 22px;
    font-size: 32px;
  }

  .contact-content .contact-lead {
    font-size: 18px;
  }

  .contact-content p {
    font-size: 13px;
  }

  .contact-links {
    gap: 24px;
    margin-top: 28px;
    padding-top: 18px;
  }

  /* Footer */

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}


/* ========================================
   11. Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
