/* ═══════════════════════════════════════════
   OWN360 SHARED COMPONENTS
   Buttons, cards, forms, tables, badges,
   typography, grids, sections, animations
═══════════════════════════════════════════ */


/* ───────────────────────────────────────────
   TYPOGRAPHY HELPERS
─────────────────────────────────────────── */

.page-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
  display: block;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 620px;
}

.gn {
  color: var(--forest);
}

.mg {
  color: var(--faint);
}

.gold-text {
  color: var(--gold);
}

.blue-text {
  color: var(--cobalt);
}


/* ───────────────────────────────────────────
   SECTION ELEMENTS
─────────────────────────────────────────── */

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
  display: block;
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
  display: inline-block;
}

.eyebrow-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-body {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.75;
  max-width: 640px;
}

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.section-note {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
  margin-top: 16px;
}


/* ───────────────────────────────────────────
   GRID UTILITIES
─────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ───────────────────────────────────────────
   CARDS
─────────────────────────────────────────── */

.card {
  background: var(--cream2);
  border: 1px solid var(--rule);
  padding: 28px;
  transition: box-shadow .2s, border-color .2s;
}

.card:hover {
  border-color: var(--fmid);
  box-shadow: 0 4px 20px var(--sh);
}

.info-card {
  background: var(--flit);
  border: 1px solid var(--fmid);
  padding: 24px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-body {
  font-size: 14px;
  color: var(--faint);
  line-height: 1.7;
}


/* ───────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: var(--cream);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
}

.btn-primary:hover {
  background: var(--forest2);
  box-shadow: 0 3px 14px rgba(27, 94, 56, .3);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: var(--cream);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
}

.btn-cta:hover {
  background: var(--forest2);
  box-shadow: 0 4px 18px rgba(27, 94, 56, .35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 12px 28px;
  border: 1.5px solid var(--rule);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s, color .18s;
}

.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--forest);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 10px 22px;
  border: 1.5px solid var(--forest);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s;
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}


/* ───────────────────────────────────────────
   FORMS
─────────────────────────────────────────── */

label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"] {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  outline: none;
  border-color: var(--forest);
}

textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s;
}

textarea:focus {
  outline: none;
  border-color: var(--forest);
}

select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b6655'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select:focus {
  outline: none;
  border-color: var(--forest);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
  opacity: .6;
}


/* ───────────────────────────────────────────
   TABLES
─────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule2);
  color: var(--ink);
}

tr:hover {
  background: var(--inka02);
}


/* ───────────────────────────────────────────
   BADGES
─────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--cream2);
  border: 1px solid var(--rule);
  color: var(--faint);
}

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 600;
}

.badge.green {
  background: var(--flit);
  color: var(--forest);
  border: 1px solid var(--fmid);
}

.badge.red {
  background: var(--scarlit);
  color: var(--scarlet);
  border: 1px solid var(--scarlet);
}

.badge.blue {
  background: var(--coblit);
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
}


/* ───────────────────────────────────────────
   CONTENT BLOCKS
─────────────────────────────────────────── */

.content-block {
  margin-bottom: 48px;
}

.content-block h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.content-block p {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.75;
  margin-bottom: 12px;
}

.hl-box {
  background: var(--flit);
  border-left: 3px solid var(--forest);
  padding: 20px 24px;
  margin: 24px 0;
}

.hl-box p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}


/* ───────────────────────────────────────────
   REVEAL ANIMATION
─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ───────────────────────────────────────────
   SECTION ENTER ANIMATION
─────────────────────────────────────────── */

.section-enter {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.section-enter.visible {
  opacity: 1;
  transform: translateY(0);
}
