/* ============================================================
   style.css — One Eight Hero Co., Ltd.
   ============================================================ */

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

:root {
  --navy:   #1a1a2e;
  --gold:   #c9a96e;
  --bg:     #f8f8f6;
  --text:   #2c2c2c;
  --muted:  #6b6b6b;
  --border: #ddd9d0;
  --white:  #ffffff;
  --max-w:  1100px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--white);
}

/* ---------- Section heading ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.section-heading p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.nav-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  opacity: 0.7;
  margin-bottom: 24px;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Desktop nav */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--gold);
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--navy);
    border-top: 1px solid rgba(201,169,110,0.2);
    padding: 8px 0 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 5%;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--gold);
  }
}

/* ---------- Page offset for fixed nav ---------- */
main {
  padding-top: 72px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn--filled {
  background: var(--gold);
  color: var(--navy);
}

.btn--filled:hover {
  background: transparent;
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

/* ---------- Services grid (home preview) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service-card .card-icon {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Business page cards ---------- */
.business-card {
  display: flex;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.business-card:last-child {
  border-bottom: none;
}

.business-card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  min-width: 56px;
  flex-shrink: 0;
}

.business-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.business-card p {
  color: var(--muted);
}

@media (max-width: 600px) {
  .business-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);
}

.about-facts {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px;
}

.about-facts h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.fact-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}

.fact-value {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Corporate Info page ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table th {
  color: var(--muted);
  font-weight: 400;
  width: 220px;
  white-space: nowrap;
}

.info-table td {
  font-weight: 500;
  color: var(--text);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .info-table th {
    padding-top: 20px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .info-table tr {
    border-bottom: 1px solid var(--border);
    display: block;
    padding-bottom: 10px;
  }

  .info-table tr:last-child {
    border-bottom: none;
  }

  .info-table td {
    border-bottom: none;
  }
}

.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
}

.contact-info .email-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(201,169,110,0.4);
  transition: border-color var(--transition);
}

.contact-info .email-link:hover {
  border-color: var(--gold);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin: 0;
}

/* ---------- Divider ---------- */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 48px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-strip p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111122;
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8125rem;
}
