/* ============================================================
   SHARED STYLESHEET — links to every page.
   Edit this one file to restyle the whole site.
   ============================================================ */

@charset "UTF-8";
@import url(font-awesome.min.css);

/* ---- 1. Theme variables ---- */
:root {
  --ink:    #1d2433;   /* main text */
  --muted:  #5b6477;   /* secondary text */
  --bg:     #fbfaf7;   /* page background */
  --card:   #ffffff;   /* card / panel background */
  --line:   #e7e3da;   /* borders & dividers */
  --accent: #dc2626;   /* links, buttons, highlights */
  --radius: 14px;
  --maxw:   1080px;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

/* ---- 2. Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url('images/xameco_bg_light.svg');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
main { flex: 1; }   /* pushes footer to the bottom on short pages */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }

/* ---- 3. Header / top menu ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img {
  max-height: 50px;
  width: auto;
  display: block;
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
/* The current page gets class="active" on its link */
.nav-links a.active { color: var(--ink); font-weight: 600; }

/* ---- 4. Page intro / hero ---- */
.hero { padding: 88px 0 64px; }
.eyebrow {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 18ch; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 54ch; margin: 22px 0 32px; }

/* ---- 5. Buttons ---- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 999px; font-weight: 500; cursor: pointer;
  border: none; font-size: 1rem; font-family: var(--font-body);
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 12px; }

/* ---- 6. Generic section ---- */
section { padding: 56px 0; }
.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---- 7. Card grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .num { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 14px; }

/* ---- 8. Prose block (About) ---- */
.prose { max-width: none; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose h2 { margin-bottom: 18px; }

/* ---- 9. Contact form ---- */
.form { max-width: 520px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.contact-table td {
  vertical-align: top;
  padding: 0;
  border: none;
}
.contact-table__form {
  width: 62%;
  padding-right: 32px;
}
.contact-table__details {
  width: 38%;
  padding-left: 32px;
}
.contact-details {
  border-radius: 18px;
  background: var(--card);
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(29, 36, 51, .04);
}
.contact-details__label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  font-size: .8rem;
  margin-bottom: 12px;
}
.contact-details a {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}
.contact-details__note {
  margin: 0;
  color: var(--muted);
}

.contact-meta { color: var(--muted); margin-top: 8px; }
.contact-meta a { font-weight: 500; }

.values-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.values-table td {
  vertical-align: middle;
  padding: 18px 0;
}
.values-table td:first-child {
  width: 68px;
  padding-right: 18px;
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: transparent;
  color: var(--accent);
}
.value-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.values-table .fa {
  font-size: 1.6rem;
  margin-top: 6px;
  color: var(--accent);
  display: inline-block;
}
.values-table strong {
  display: block;
  margin-bottom: 8px;
}
.values-table p {
  margin: 0;
  color: var(--muted);
}

/* ---- References (inline logos) ---- */
.values-table.references td {
  padding: 0;
}
.values-table.references td a {
  display: inline-block;
  margin-right: 12px;
}
.values-table.references td a img {
  display: inline-block;
  width: 80px;
  height: 80px;
  max-width: none;
}

/* ---- Copy-link button ---- 
.copy-wrap { position: relative; display: inline-flex; }
.copy-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.copy-wrap.is-copied .copy-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; }
.copy-link svg { width: 16px; height: 16px; }
*/

/* ---- 10. Footer ---- */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot small { color: var(--muted); }

/* ---- 11. Responsive ---- */
@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .grid { grid-template-columns: 1fr; }
  .btn.secondary { margin-left: 0; margin-top: 12px; }
}