/* Tyra Solutions — brand-driven site
   Palette derived from logo & slide deck:
   - Navy #0F2A54 (deep brand blue)
   - Navy deep #0A1D3D
   - Accent red #C1272D (logo underline)
   - Sand #E8DEC8 (dust / warmth)
   - Cream #F5F1EA
*/

:root {
  --navy: #0F2A54;
  --navy-800: #0A1D3D;
  --navy-900: #071531;
  --red: #C1272D;
  --red-600: #A81F25;
  --sand: #E8DEC8;
  --cream: #F5F1EA;
  --paper: #FFFFFF;
  --ink: #0E1A2E;
  --ink-mute: #4A5468;
  --line: rgba(15, 42, 84, 0.14);
  --line-dark: rgba(255,255,255,0.14);
  --shadow-sm: 0 2px 8px rgba(10,29,61,.08);
  --shadow-md: 0 12px 32px rgba(10,29,61,.14);
  --radius: 6px;

  --font-display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1rem;
}
.eyebrow-dark { color: var(--red); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 0.6rem;
  text-transform: none;
}
.section-title--light { color: #fff; }

.rule {
  width: 88px;
  height: 4px;
  background: var(--red);
  margin: 0 0 2.5rem;
  border-radius: 2px;
}
.rule--light { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; padding: 1rem 1.2rem; font-size: 1rem; }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 21, 49, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}
.brand-logo {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
}
.site-nav {
  display: flex;
  gap: 1.6rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a { position: relative; padding: 0.4rem 0; }
.site-nav a:hover { color: #fff; }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; }

@media (max-width: 780px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-slide2.png");
  background-size: cover;
  background-position: center center;
  filter: brightness(0.6) saturate(0.95);
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,21,49,0.55) 0%, rgba(7,21,49,0.75) 60%, rgba(7,21,49,0.95) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 900px;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 1.1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  text-transform: none;
}
.accent-line {
  display: inline-block;
  position: relative;
  padding-bottom: 0.15em;
}
.accent-line::after {
  content: "";
  position: absolute; left: 0; right: 30%;
  bottom: 0;
  height: 5px;
  background: var(--red);
  border-radius: 3px;
}
.hero-sub {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,0.88);
  margin: 0 0 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Callout tiles */
.callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.callout {
  background: rgba(10, 29, 61, 0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--red);
  padding: 1.1rem 1.15rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.callout-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.callout h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.4rem;
  line-height: 1.15;
  color: #fff;
}
.callout p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .callouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .callouts { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
}

/* ---------- Who / About ---------- */
.who {
  background: var(--cream);
  padding: 6rem 0 5rem;
}
.who-lead {
  max-width: 820px;
  margin-bottom: 3.2rem;
}
.who-lead h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
.who-lead p {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 1.8rem 1.7rem 1.6rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cap-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.cap-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
}
.cap-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.cap-card p {
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
}
.cap-card p:last-child { margin-bottom: 0; }

.advantage {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 1.4rem 1.6rem;
  border-radius: 4px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.advantage strong { color: var(--navy-800); }

@media (max-width: 780px) {
  .capability-grid { grid-template-columns: 1fr; }
  .who { padding: 4rem 0 3rem; }
}

/* ---------- Partners ---------- */
.partners {
  background: #fff;
  padding: 5rem 0 4.5rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.partner-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--navy);
}
.partner-card:hover:not(.partner-card--static) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.partner-mark {
  width: 130px;
  aspect-ratio: 1 / 1;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.partner-mark--placeholder {
  color: var(--navy);
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, #f4efe4 10px, #f4efe4 12px);
}
.partner-mark svg { width: 100%; height: 100%; }
.partner-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.partner-body p {
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
}
.partner-link {
  font-weight: 600;
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.partner-link--muted { color: var(--ink-mute); font-weight: 500; font-style: italic; }

@media (max-width: 780px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { grid-template-columns: 90px 1fr; gap: 1rem; padding: 1.2rem; }
  .partner-mark { width: 90px; }
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--cream);
  padding: 5rem 0;
}
.gallery-feature {
  margin: 0 0 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-900);
}
.gallery-feature img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery-feature:hover img { transform: scale(1.04); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: 240px;
  gap: 1rem;
}
.g-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { display: none; }
.g-wide { grid-column: span 1; }
.gallery-grid .g-wide:first-of-type { grid-row: span 1; }

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy-900);
  color: #fff;
  padding: 5rem 0;
  background-image:
    radial-gradient(1200px 400px at 10% -20%, rgba(193,39,45,0.15), transparent 60%),
    radial-gradient(900px 400px at 100% 120%, rgba(15,42,84,0.7), transparent 60%);
}
.contact .eyebrow { color: var(--red); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 0 2rem;
}
.contact-facts {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0.6rem;
}
.contact-facts li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.contact-facts span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--red);
}
.contact-facts a { color: #fff; font-weight: 500; }
.contact-facts a:hover { color: var(--sand); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 1.8rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.09);
}
.field textarea { resize: vertical; min-height: 110px; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0.8rem 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img {
  height: 60px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-cols h5 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: #fff;
  margin: 0 0 0.9rem;
}
.footer-cols a, .footer-cols span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  padding: 0.15rem 0;
}
.footer-cols a:hover { color: var(--red); }

.footer-strip {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-strip .container { flex-direction: column; gap: 0.4rem; }
}
