/* Nine Stars Co., Ltd. — About Us
   Recreated from the supplied website mockup.
*/

:root {
  --green: #176b5e;
  --text: #292929;
  --muted: #555;
  --line: #d3d3d3;
  --page-width: 1225px;
  --side-padding: 60px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */

.site-header {
  height: 135px;
  background: #fff;
}

.header-inner {
  width: min(var(--page-width), calc(100% - 120px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  width: 210px;
  height: auto;
  display: block;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 58px;
  margin-left: auto;
  margin-right: 52px;
}

.main-nav a {
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.6;
}

.language-switcher {
  height: 46px;
  min-width: 126px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
}

.language-switcher span {
  color: #777;
}

.language-switcher a:hover,
.language-switcher .active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  width: 100%;
  max-width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: url("hero.png") center center / cover no-repeat;
}

@media (max-width: 600px) {
  .hero {
    height: 220px;
  }
}

/* If you add assets/hero.jpg, use this:
.hero-placeholder {
  background: url("assets/hero.jpg") center center / cover no-repeat;
}
.hero-placeholder span,
.hero-placeholder small {
  display: none;
}
*/

/* Main content */

.content-section {
  width: min(var(--page-width), calc(100% - 120px));
  margin: 0 auto;
  padding-top: 76px;
  padding-bottom: 130px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-top: 28px;
}

.intro {
  margin: 50px 0 50px;
  font-size: 18px;
  line-height: 1.08;
}

.company-info {
  margin: 0;
  padding: 0;
}

.company-info > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  margin-bottom: 12px;
}

.company-info dt,
.company-info dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.company-info dt {
  font-weight: 700;
}

.company-info dd {
  font-weight: 400;
}

.people-section {
  margin-top: 108px;
}

.subheading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
}

.subheading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

.subheading div {
  height: 1px;
  background: var(--line);
}

.person {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.person strong,
.person span {
  font-size: 17px;
  line-height: 1.05;
}

.person strong {
  font-weight: 700;
}

.person span {
  font-weight: 400;
}

.advisor-section {
  margin-top: 66px;
}

.advisor-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.advisor-list .person {
  margin-top: 0;
}

/* Business Cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 8px;
}

.business-card {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.business-card-image {
  aspect-ratio: 16 / 10;
  background: #777; /* mockup placeholder; remove once images are in */
  overflow: hidden;
}

.business-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-body {
  border-top: 3px solid var(--green);
  padding: 22px 22px 28px;
}

.business-card-body h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.business-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 400;
}

@media (max-width: 900px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card-body {
    padding: 18px 18px 24px;
  }
}





/* Footer */

.site-footer {
  width: min(var(--page-width), calc(100% - 120px));
  margin: 0 auto;
  padding-bottom: 65px;
  text-align: center;
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 40px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p + p {
  margin-top: 4px;
}

/* Responsive */

@media (max-width: 900px) {
  :root {
    --side-padding: 30px;
  }

  .site-header {
    height: auto;
    min-height: 100px;
  }

  .header-inner {
    width: calc(100% - 60px);
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 30px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .content-section,
  .site-footer {
    width: calc(100% - 60px);
  }

  .content-section {
    padding-top: 55px;
    padding-bottom: 90px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 40px);
    padding: 20px 0;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 16px;
  }

  .language-switcher {
    height: 38px;
    min-width: 105px;
    font-size: 14px;
    padding: 0 8px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 15px;
  }

  .main-nav a {
    font-size: 15px;
  }

  .hero {
    aspect-ratio: 1.8 / 1;
    min-height: 220px;
  }

  .content-section,
  .site-footer {
    width: calc(100% - 40px);
  }

  .content-section {
    padding-top: 42px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: 32px;
  }

  .section-rule {
    margin-top: 20px;
  }

  .intro {
    margin: 35px 0 38px;
    font-size: 16px;
    line-height: 1.35;
  }

  .desktop-break {
    display: none;
  }

  .company-info > div {
    grid-template-columns: 105px 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }

  .company-info dt,
  .company-info dd,
  .person strong,
  .person span,
  .subheading h2 {
    font-size: 15px;
  }

  .people-section {
    margin-top: 75px;
  }

  .subheading {
    gap: 15px;
  }

  .person {
    margin-top: 35px;
  }

  .advisor-section {
    margin-top: 55px;
  }

  .advisor-list {
    gap: 23px;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .footer-rule {
    margin-bottom: 30px;
  }

  .site-footer p {
    font-size: 11px;
  }
}

/* Multi-page additions */
.page-intro { max-width: 900px; }
.page-placeholder { min-height: 340px; display:flex; flex-direction:column; justify-content:center; }
.page-placeholder h1 { margin-bottom: 28px; }
.page-placeholder p { max-width: 760px; font-size:18px; line-height:1.6; }


/* Business Page */

/* =========================================
   Our Business & Services
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}

.business-section {
  width: 100%;
  padding: 0;
}

.business-container {
  width: min(100%, 1200px);
  margin: 0 auto;
}

/* Header
   ----------------------------------------- */

.business-header h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.business-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 34px;
}

.business-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  background: #d9d9d9;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.business-categories a:hover,
.business-categories a:focus-visible {
  background: #08785f;
  color: #fff;
}

/* Business list
   ----------------------------------------- */

.business-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.business-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: center;
  scroll-margin-top: 30px;
}

/* Image container
   ----------------------------------------- */

.business-image {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  border: 1px solid #bdbdbd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.business-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*
  If you want an empty placeholder instead of an image,
  simply remove the <img> element from the HTML.
*/

/* Text
   ----------------------------------------- */

.business-content {
  max-width: 540px;
}

.business-content h2 {
  margin: 0 0 2px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.business-type {
  margin: 0 0 7px;
  color: #666;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
}

.business-content > p:not(.business-type) {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Visit button
   ----------------------------------------- */

.business-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
  padding: 7px 25px 7px;
  border-radius: 0px;
  background: #08785f;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.business-button:hover,
.business-button:focus-visible {
  background: #055d4a;
  transform: translateY(-1px);
}

/* Tablet
   ----------------------------------------- */

@media (max-width: 800px) {
  .business-section {
    padding: 42px 20px 56px;
  }

  .business-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .business-content {
    max-width: none;
    padding-bottom: 12px;
  }

  .business-content > p:not(.business-type) {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.25;
  }
}

/* Mobile
   ----------------------------------------- */

@media (max-width: 520px) {
  .business-section {
    padding: 34px 16px 48px;
  }

  .business-header h1 {
    margin-bottom: 18px;
  }

  .business-categories {
    gap: 4px;
    margin-bottom: 26px;
  }

  .business-categories a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .business-list {
    gap: 22px;
  }

  .business-item {
    gap: 13px;
  }

  .business-content h2 {
    font-size: 21px;
  }

  .business-type {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .business-content > p:not(.business-type) {
    font-size: 15px;
    line-height: 1.3;
  }
}

