/* ======================================================
   COMPONENTS — HAVENROCK
   Reusable UI elements (no layout primitives)
====================================================== */

/* ===============================
   HEADER / NAVIGATION
================================ */

/* header {
  background: var(--color-primary);
  position: relative;
  z-index: 10;
}

.top-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
} */

header {
  width: 100%;
  background: var(--color-primary);
}

.top-bar {
  width: 100%;
  max-width: none;              /* 🔴 remove constraint */
  margin: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #085076;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-main {
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.16em;
}

/* Desktop Nav */
nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* Nav CTA */
.nav-cta {
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #9c7742;
}

/* ===============================
   MOBILE NAV
================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  background: var(--color-primary);
  padding: 1.5rem;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-inner a {
  color: #ffffff;
  font-size: 0.95rem;
}

/* ===============================
   HERO (FULL BLEED VIDEO)
================================ */

/* .hero-fullwidth {
  position: relative;
  width: 100vw;
  height: 80vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
} */

.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--color-text-inverse);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--color-text-inverse);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--color-text-inverse);
  opacity: 0.9;
  margin: 2rem 0;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===============================
   BUTTONS
================================ */

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  padding: 16px 32px; /*0.85rem 1.8rem;*/
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  transition: background 0.25s ease;
}

.btn-primary:hover {
  background: #9c7742;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.82rem 1.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  transition: border-color 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
}

.btn-header {
  display: inline-flex;          /* 🔑 aligns text perfectly */
  align-items: center;
  justify-content: center;

  background: var(--color-accent);
  color: #ffffff;

  padding: 0.5rem 1.25rem;       /* slightly tighter */
  font-size: 0.85rem;
  line-height: 1;                /* prevents baseline drift */

  border-radius: var(--radius-xs);
  transition: background 0.2s ease;
}

.btn-header:hover {
  background: #9c7742;
}

/* ===============================
   CARDS
================================ */

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* ===============================
   GRIDS (CONTENT CARDS)
================================ */

.work-grid,
.strength-grid,
.provide-grid,
.capabilities-grid {
  display: grid;
  gap: 3rem;
}

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

.strength-grid,
.provide-grid,
.capabilities-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Card items */
.work-item,
.strength-item,
.provide-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .work-item:hover,
  .strength-item:hover,
  .provide-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 28px rgba(15,23,42,0.08),
      0 2px 6px rgba(15,23,42,0.04);
  }
}

/* Icons */
.work-icon,
.strength-icon,
.provide-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
}

.work-icon img,
.strength-icon img,
.provide-icon img,
.work-icon svg,
.strength-icon svg,
.provide-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===============================
   FOOTER
================================ */

.site-footer {
  font-size: 0.95rem;
}

/* Top footer */
.footer-top {
  background: #f1f5f9;
  padding: 4rem 1.5rem;
}

.footer-top-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
}

.footer-divider {
  width: 2px;
  background: var(--color-primary);
  opacity: 0.25;
}

.footer-cta ul {
    margin-bottom: 3rem;
}

/* Bottom footer */
.footer-bottom {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 4rem 1.5rem;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
}

.footer-bottom h3 {
    color: rgba(255, 255, 255, 0.75);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.75);
}

.footer-affiliation {
  margin-top: 16px;
  font-size: 1.0rem;
  color: #cbd5f5;
}

.footer-affiliation a {
  color: #B08D57; /* Havenrock gold */
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.footer-affiliation a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .footer-top-inner,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}
