/* ===========================
   TAARS website — base styles
   =========================== */

:root {
  --color-ink: #2c2a2e;        /* logo / heading color (charcoal-warm) */
  --color-text: #4b4b52;       /* body text */
  --color-text-soft: #7a7a82;  /* secondary text */
  --color-blue: #0054cc;       /* brand accent */
  --color-blue-dark: #003e99;
  --color-blue-tint: #eaf1fc;  /* light blue background tint */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-border: #e7e8ec;
  --radius: 12px;
  --max-width: 1120px;
  --shadow-card: 0 2px 16px rgba(20, 20, 30, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic",
    "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--color-ink);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

.section {
  padding: 88px 0;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-soft);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.nav-cta {
  background: var(--color-blue);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover {
  background: var(--color-blue-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  background: var(--color-blue-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.32;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-blue);
}

.hero-sub {
  font-size: 17px;
  color: var(--color-text-soft);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.hero-art {
  width: 100%;
  height: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-blue-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* ---------- Trust stats bar ---------- */

.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-soft);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.card-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-soft);
  font-size: 14.5px;
  margin-bottom: 0;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-ink);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-band .btn--primary { background: var(--color-blue); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand img { height: 22px; margin-bottom: 14px; }

.footer-brand p {
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin: 2px 0;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 56px 0 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header .section-label { margin-bottom: 10px; }
.page-header h1 { font-size: 34px; margin-bottom: 10px; }
.page-header p { color: var(--color-text-soft); margin: 0; max-width: 600px; }

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-blue); }

/* ---------- Table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
}
th {
  color: var(--color-text-soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Timeline ---------- */

.timeline {
  border-left: 2px solid var(--color-border);
  padding-left: 28px;
  display: grid;
  gap: 32px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-blue);
}
.timeline-year {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 4px;
}

/* ---------- Quote / CEO message ---------- */

.quote-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quote-block p {
  font-size: 17px;
  color: var(--color-ink);
  line-height: 1.85;
}
.quote-sign {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-soft);
}

/* ---------- Project cards (track record) ---------- */

.project-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.project-period {
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: 10px;
}
.project-card h3 { font-size: 18px; margin-bottom: 12px; }
.project-card ul { display: grid; gap: 6px; }
.project-card li {
  font-size: 14px;
  color: var(--color-text-soft);
  padding-left: 16px;
  position: relative;
}
.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-blue);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 13.5px;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }

.contact-info-item h4 {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-info-item p { margin: 0; color: var(--color-ink); font-weight: 600; }

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 4px; transform: translateX(100%);
    transition: transform 0.2s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--color-border); }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .hero h1 { font-size: 30px; }

  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
}
