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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: #001f4a;
  font-family: Helvetica, Arial, sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

/* Variables */
:root {
  --primary-blue: #084da3;
  --footer-blue: #0d3869;
  --white: #ffffff;
  --dark-text: #001f4a;
  --ink: #143453;
  --soft-bg: #f5f9ff;
  --line: rgba(8, 77, 163, .16);
  --blue-gradient: linear-gradient(135deg, #084da3 0%, #064485 58%, #0d3869 100%);
  --muted-white: rgba(255, 255, 255, .56);
  --container-width: 1176px;
  --font-main: Helvetica, Arial, sans-serif;
  --font-display: "Barlow", Arial, sans-serif;
}

.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  height: 82px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(8, 77, 163, .08);
  box-shadow: 0 4px 18px rgba(13, 56, 105, .06);
}

.header-content {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding-inline: 18px;
}

.brand {
  width: 158px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  transform: translateX(34px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  padding: 12px 0;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: #050505;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  border-radius: 0;
  background: var(--primary-blue);
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.page-hero {
  padding-top: 92px;
}

.title-ribbon {
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  min-height: 142px;
  align-items: center;
  padding: 22px 42px 22px max(24px, calc((100vw - var(--container-width)) / 2));
  border-radius: 0 10px 10px 0;
  background: var(--blue-gradient);
  box-shadow: 14px 17px 28px rgba(13, 56, 105, .26);
}

.title-ribbon h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: .04em;
}

.text-fallback {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 800;
}

/* Info */
.contact-info {
  padding: 76px 0 56px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 92px;
}

.info-card {
  position: relative;
  min-height: 92px;
  padding: 4px 0 0 18px;
}

.info-card::before {
  position: absolute;
  top: 7px;
  bottom: 6px;
  left: 0;
  width: 3px;
  background: var(--primary-blue);
  content: "";
}

.info-grid article:nth-child(2) {
  padding-left: 56px;
}

.info-grid article:nth-child(2)::before {
  left: 38px;
}

.info-grid h2 {
  margin-bottom: 10px;
  color: var(--primary-blue);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.info-grid p {
  color: var(--dark-text);
  font-size: 18px;
  line-height: 1.35;
}

.info-grid a:hover,
.info-grid a:focus-visible {
  color: var(--primary-blue);
}

/* Contact Form And Map */
.contact-main {
  position: relative;
  padding-bottom: 86px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 492px minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px 0 0;
}

.contact-form label {
  color: var(--dark-text);
  font-size: 14px;
  line-height: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.3px solid var(--primary-blue);
  border-radius: 4px;
  background: var(--white);
  color: var(--dark-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input {
  height: 36px;
  padding: 7px 10px;
  margin-bottom: 14px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 10px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #063d82;
  box-shadow: 0 0 0 3px rgba(8, 77, 163, .13);
}

.contact-form button {
  justify-self: start;
  min-height: 46px;
  margin-top: 30px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--blue-gradient);
  color: var(--white);
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #063f86;
  transform: translateY(-2px);
}

.map-wrap {
  overflow: hidden;
  min-height: 567px;
  border: 1px solid rgba(8, 77, 163, .12);
  border-radius: 4px;
  background: #f2efe7;
  box-shadow: 0 20px 46px rgba(13, 56, 105, .12);
}

.map-wrap iframe {
  width: 100%;
  height: 567px;
  border: 0;
}

/* Divider */
.section-divider {
  width: min(500px, calc(100% - 80px));
  height: 2px;
  margin: 0 auto 92px;
  background: var(--primary-blue);
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 30;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: #31c968;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  transform: scale(1.06);
}

.whatsapp svg {
  width: 42px;
  height: 42px;
  fill: var(--white);
}

/* Footer */
.site-footer {
  min-height: 379px;
  padding: 68px 0 45px;
  background: linear-gradient(135deg, #0d3869 0%, #082f5d 62%, #06264d 100%);
  color: var(--muted-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-column {
  max-width: 350px;
}

.footer-column h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.footer-column p,
.footer-column li {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.35;
}

.footer-column a {
  transition: color .2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 7px;
}

.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, .62);
  color: var(--footer-blue);
  font-size: 17px;
  font-weight: 700;
}

.footer-notice {
  margin-top: 73px;
}

.footer-notice p {
  font-size: 10px;
  font-style: italic;
  line-height: 1.45;
}

.footer-notice strong {
  font-style: normal;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav {
    gap: 13px;
    transform: none;
  }

  .main-nav a {
    font-size: 11px;
  }

  .contact-layout {
    grid-template-columns: .9fr 1fr;
    gap: 42px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 44px), var(--container-width));
  }

  .site-header {
    height: 72px;
  }

  .header-content {
    align-items: center;
    padding-top: 0;
  }

  .brand {
    width: 140px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(8, 77, 163, .12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(8, 77, 163, .12);
    font-size: 12px;
  }

  .main-nav a::after {
    right: 42%;
    bottom: 7px;
    left: 42%;
  }

  .page-hero {
    padding-top: 40px;
  }

  .title-ribbon {
    width: min(94%, 640px);
    min-height: 118px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .title-ribbon h1 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(25px, 5.2vw, 34px);
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.05;
  }

  .contact-info {
    padding: 56px 0 42px;
  }

  .info-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    gap: 34px;
  }

  .info-grid article:nth-child(2) {
    padding-left: 0;
  }

  .info-grid article:nth-child(2)::before {
    left: 0;
  }

  .contact-layout {
    gap: 42px;
  }

  .contact-form {
    padding-top: 0;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 420px;
    height: 420px;
  }

  .contact-main {
    padding-bottom: 0 !important;
  }

  .contact-layout {
    padding-bottom: 0 !important;
  }

  .section-divider {
    margin: 64px auto !important;
  }

  .site-footer {
    padding: 45px 0 35px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-notice {
    margin-top: 38px;
  }

  .whatsapp {
    right: 16px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-width: 4px;
  }

  .whatsapp svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .title-ribbon {
    min-height: 104px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .title-ribbon h1 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(20px, 6vw, 27px);
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.05;
  }

  .info-grid h2 {
    font-size: 24px;
  }

  .info-grid p {
    font-size: 16px;
  }

  .contact-form button {
    width: 100%;
    font-size: 16px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 340px;
    height: 340px;
  }
}
