/* ===========================================
   TETHER — Global Stylesheet
   Enterprise Clarity Framework
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* -------- CSS Custom Properties -------- */
:root {
  --color-navy:       #0D1F3C;
  --color-navy-mid:   #163461;
  --color-navy-light: #1E4080;
  --color-teal:       #00B8D4;
  --color-teal-dark:  #0097B2;
  --color-teal-soft:  #E0F7FA;
  --color-grey-90:    #F4F6F9;
  --color-grey-80:    #E8ECF2;
  --color-grey-60:    #C4CDD8;
  --color-grey-40:    #8A9BB0;
  --color-grey-20:    #4A5568;
  --color-text:       #1A2540;
  --color-white:      #FFFFFF;
  --color-accent:     #FF6B35;

  --font-heading: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(13,31,60,.07), 0 1px 2px rgba(13,31,60,.05);
  --shadow-md:   0 4px 12px rgba(13,31,60,.10), 0 2px 6px rgba(13,31,60,.07);
  --shadow-lg:   0 10px 32px rgba(13,31,60,.13), 0 4px 12px rgba(13,31,60,.08);

  --max-width: 1200px;
  --section-v: 80px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* -------- Typography -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

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

.lead {
  font-size: 1.2rem;
  color: var(--color-grey-20);
  line-height: 1.7;
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-teal);
  display: block;
  margin-bottom: .6rem;
}

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

.section { padding: var(--section-v) 0; }
.section--dark   { background: var(--color-navy); color: var(--color-white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--color-white); }
.section--dark .lead,
.section--dark p { color: rgba(255,255,255,.8); }
.section--dark .section-label { color: var(--color-teal); }

.section--grey  { background: var(--color-grey-90); }
.section--teal  { background: var(--color-teal-soft); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 12px; }
.flex-gap-md { gap: 24px; }
.flex-gap-lg { gap: 40px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 64px; }

.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--color-white);
}
.btn-outline-white:hover {
  border-color: var(--color-teal);
  background: var(--color-teal);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--color-teal);
  padding: 12px 0;
  font-weight: 600;
  gap: 6px;
}
.btn-ghost:hover { gap: 10px; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* -------- Cards -------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-grey-80);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-teal);
}
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; border-color: var(--color-teal); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-teal-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-teal-dark);
  font-size: 1.4rem;
}
.card-tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  background: var(--color-teal-soft);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

/* -------- Stat Block -------- */
.stat-block { text-align: center; padding: 32px 20px; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
  display: block;
}
.stat-label { font-size: .9rem; color: var(--color-grey-40); margin-top: 8px; }

/* -------- Section Header -------- */
.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* -------- Divider -------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-teal);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.divider.centered { margin-left: auto; margin-right: auto; }

/* -------- Tags & Pills -------- */
.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-grey-90);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-grey-20);
}
.tag:hover { background: var(--color-teal-soft); color: var(--color-teal-dark); }

/* -------- Breadcrumb -------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--color-grey-40);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--color-teal-dark); }
.breadcrumb a:hover { color: var(--color-navy); }
.breadcrumb span { color: var(--color-grey-60); }

/* -------- Form Elements -------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-grey-80);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0,184,212,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* -------- Quote / Callout -------- */
.callout {
  background: var(--color-teal-soft);
  border-left: 4px solid var(--color-teal);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}
.callout p { color: var(--color-navy); font-weight: 500; }
blockquote {
  border-left: 3px solid var(--color-teal);
  padding: 12px 24px;
  color: var(--color-grey-20);
  font-style: italic;
  margin: 20px 0;
}

/* -------- Table -------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
}
td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-grey-80);
  color: var(--color-grey-20);
}
tr:nth-child(even) td { background: var(--color-grey-90); }
tr:hover td { background: var(--color-teal-soft); }

/* -------- Page Hero (inner pages) -------- */
.page-hero {
  background: var(--color-navy);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 480px; height: 480px;
  background: var(--color-navy-light);
  border-radius: 50%;
  opacity: .25;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 10%; bottom: -100px;
  width: 280px; height: 280px;
  background: var(--color-teal);
  border-radius: 50%;
  opacity: .07;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 640px; }

/* -------- Pagination -------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--color-grey-80);
  color: var(--color-grey-20);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }
.pagination .active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* -------- Tooltip -------- */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-wrap .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: #fff;
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.tooltip-wrap:hover .tooltip { opacity: 1; }

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-v: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hide-mobile { display: none !important; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: .875rem; }
}
