:root {
  --navy: #2a3957;
  --navy-deep: #23314d;
  --lime: #8dc63f;
  --white: #ffffff;
  --text: #425066;
  --line: #dbe3ee;
  --panel: #f5f8fc;
  --overlay: rgba(35, 49, 77, 0.68);
  --shadow: 0 18px 40px rgba(35, 49, 77, 0.14);
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

main,
section,
header,
footer {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: 1rem;
  margin: 0 auto;
}

.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--lime);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-row {
  min-height: 132px;
}

.site-logo img {
  width: 280px;
}

.site-logo,
.hero-logo {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.header-contact {
  text-align: right;
  color: var(--white);
}

.header-contact p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-contact a {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  background:
    url("TAR-Website-Slider_1.jpg")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.hero-logo {
  width: min(380px, 70vw);
  margin-bottom: 2rem;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--lime);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
}

.hero h1 {
  max-width: none;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(1.56rem, 3.315vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
  max-width: 52rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  line-height: 1.7;
  min-width: 0;
}

.hero-service-area {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 34rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.9rem;
  max-width: 100%;
  flex: 1 1 220px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  opacity: 0.95;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--lime);
  color: var(--white);
}

.button-secondary {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.services,
.contact-section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.service-card {
  padding: 2rem;
  border-top: 5px solid var(--lime);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p,
.contact-copy p,
.contact-details p {
  margin: 0;
  line-height: 1.8;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  padding: 2.5rem;
  border-top: 5px solid var(--navy);
}

.contact-copy h2 {
  margin-bottom: 1rem;
}

.contact-details {
  padding: 2rem;
  background: var(--navy);
  color: var(--white);
}

.contact-name {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details p + p {
  margin-top: 0.75rem;
}

.contact-details span {
  display: inline-block;
  min-width: 78px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 1.5rem 0;
  background: var(--navy-deep);
}

.footer-content {
  display: grid;
  gap: 0.9rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-meta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .hero h1 {
    white-space: normal;
    max-width: 18ch;
  }
}

@media (max-width: 920px) {
  .service-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-row {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .header-contact {
    text-align: left;
  }

  .header-contact a {
    font-size: 1.4rem;
  }

  .site-logo img,
  .hero-logo {
    width: min(280px, 78vw);
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.18;
    white-space: normal;
    max-width: 14ch;
  }

  .hero-copy {
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .hero-service-area {
    font-size: 0.92rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.85rem;
    max-width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
    flex-basis: auto;
  }

  .hero h1,
  .section-heading h2,
  .contact-copy h2,
  .service-card h3,
  .contact-name {
    text-transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 0.75rem;
  }

  .site-logo img {
    width: min(225px, 100%);
  }

  .header-contact a {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-kicker,
  .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    max-width: 12ch;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-service-area {
    font-size: 0.86rem;
  }

  .services,
  .contact-section {
    padding: 3rem 0;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .service-card,
  .contact-card,
  .contact-details {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}
