/* ---------- Design tokens (Task 2 design system) ---------- */
:root {
  --primary-blue: #185fa5;
  --primary-blue-hover: #124a82;
  --trust-green: #2f9e6e;
  --navy: #202a40;
  --tint-navy: #e0e5ee;
  --tint-green: #eaf7f0;
  --white: #ffffff;
  --gray: #6b7280;

  --font-heading: "Gabarito", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;

  --transition: 0.2s cubic-bezier(0.27, 0, 0.51, 1);
  --max-width: 1080px;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 36px;
  font-weight: 900;
}
h2 {
  font-size: 26px;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 18px;
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
}

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

/* ---------- Layout helpers ---------- */
.section {
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-white {
  background: var(--white);
}
.section-tint {
  background: var(--tint-navy);
}
/* full-bleed tint sections: color spans edge to edge, content stays centered */
.section-tint {
  max-width: none;
}
.section-tint > .section {
  max-width: var(--max-width);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: transform var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
}
.btn-primary:hover {
  background: var(--primary-blue-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}
.btn-secondary:hover {
  background: var(--tint-navy);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border: none;
}
.btn-light:hover {
  background: var(--tint-navy);
}

/* ---------- Links ---------- */
a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}

.link-external {
  white-space: nowrap;
}
.link-external::after {
  content: " \2197"; /* diagonal arrow ↗ */
  display: inline-block;
  transition: transform var(--transition);
}
.link-external:hover::after {
  transform: translate(2px, -2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(32, 42, 64, 0.08);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.brand-role {
  font-size: 12px;
  color: var(--gray);
}

.site-header .btn {
  padding: 10px 18px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: left;
}

.hero-sub {
  color: var(--gray);
  font-size: 15px;
  margin: 0.75rem 0 1.25rem;
}

.hero-blurb {
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Trust section (video background) ---------- */
.trust-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* fallback while video loads / if it fails */
}

.trust-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.trust-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.82) 0%,
    rgba(18, 24, 38, 0.72) 100%
  );
  z-index: 1;
}

.trust-hero > .section {
  position: relative;
  z-index: 2;
}

.trust-hero h2 {
  color: var(--white);
}

.trust-hero .testimonial-gist {
  color: var(--tint-navy);
}

.trust-hero .testimonial-gist a.link-external {
  color: var(--white);
}

.trust-hero .card {
  box-shadow: 0 10px 30px rgba(8, 12, 22, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .trust-video {
    display: none;
  }
}

/* ---------- Trust cards ---------- */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(32, 42, 64, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  transition: transform var(--transition);
}
.card:hover {
  transform: scale(1.02);
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--trust-green);
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
}
.card:hover .trust-icon {
  transform: rotate(-8deg);
}

.card-stat {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-heading), "Gabarito", sans-serif;
}
.card-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 0.25rem;
}

.testimonial-gist {
  font-size: 15px;
  max-width: 640px;
}
.testimonial-gist a {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- Specializations ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.spec-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(32, 42, 64, 0.08);
  font-size: 14px;
}
.spec-list li:last-child {
  border-bottom: none;
}

.spec-note {
  margin-top: 1.75rem;
  font-size: 14px;
  color: var(--gray);
}
.spec-note strong {
  color: var(--navy);
}

/* ---------- Experience ---------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.experience-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--tint-navy);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.experience-place {
  font-weight: 700;
  font-size: 16px;
}
.experience-detail {
  color: var(--gray);
  font-size: 14px;
  margin-top: 0.2rem;
}

/* ---------- Location / map section (storytelling: full-bleed) ---------- */
.map-section {
  width: 100%;
}

.map-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.reviews-panel {
  padding: 1.75rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(32, 42, 64, 0.08);
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.reviews-rating {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
}

.reviews-stars {
  color: var(--trust-green);
  font-size: 18px;
  letter-spacing: 1px;
}

.reviews-count {
  color: var(--gray);
  font-size: 13px;
  margin-top: 0.25rem;
  margin-bottom: 1.1rem;
}

.reviews-blurb {
  font-size: 14px;
  margin-bottom: 1.1rem;
}

@media (max-width: 640px) {
  .map-split {
    grid-template-columns: 1fr;
  }
  .map-embed {
    height: 300px;
  }
  .reviews-panel {
    border-left: none;
    border-top: 1px solid rgba(32, 42, 64, 0.08);
    padding: 1.5rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.footer-heading {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 1rem;
}

.footer-address {
  color: var(--tint-navy);
  font-size: 14px;
  margin-bottom: 1.75rem;
}

.footer-fine-print {
  margin-top: 2.5rem;
  color: var(--gray);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .brand-role {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  .footer-heading {
    font-size: 28px;
  }
}
