/* ==========================================================================
   Fersam — main.css
   Brand Book FERSAM Group (2024)
   Colours: AZUL #005280 · CELESTE #3BBAEC · GRIS ALTO #EBEBEB
            GRIS MEDIO #787878 · GRIS BAJO #323232
   Type:    Plus Jakarta Sans (Light 300 / Regular 400 / SemiBold 600)
   ========================================================================== */

:root {
  --azul: #005280;
  --celeste: #3bbaec;
  --gris-alto: #ebebeb;
  --gris-medio: #787878;
  --gris-bajo: #323232;
  --bg: #f7f7f7;
  --measure: 46rem;
  --gutter: 1.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--gris-bajo);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--azul);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 82, 128, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover,
a:focus-visible { color: var(--celeste); border-bottom-color: var(--celeste); }

:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; }

/* Layout -------------------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

.main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 0 4rem;
  text-align: center;
}

/* Header -------------------------------------------------------------- */

.header {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header__logo {
  border: 0;
  display: inline-block;
}

.header__logo img { width: 180px; margin: 0 auto; }

.header__nav {
  position: absolute;
  right: 0;
  top: 3.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header__nav a { color: var(--gris-medio); border-bottom: 0; }
.header__nav a:hover { color: var(--azul); }

/* Statement ----------------------------------------------------------- */

.statement p {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 2.1;
  color: var(--gris-bajo);
  text-wrap: pretty;
}

.statement p:last-child { margin-bottom: 0; }

.statement p.tagline-eyebrow {
  margin: 0 0 2.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--azul);
}

/* Contact ------------------------------------------------------------- */

.page-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gris-medio);
}

.page-intro {
  margin: 0 auto 3.25rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 2;
}

.form { text-align: left; max-width: 34rem; margin: 0 auto; }

.form-control { position: relative; margin-bottom: 1.5rem; }

.form-control label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris-medio);
  margin-bottom: 0.35rem;
}

.form-control input,
.form-control textarea {
  width: 100%;
  padding: 0.2rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid #d5d5d5;
  background: transparent;
  color: var(--gris-bajo);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.form-control textarea { min-height: 8rem; resize: vertical; }

.form-control input:focus,
.form-control textarea:focus {
  outline: 0;
  border-bottom-color: var(--azul);
}

.form-control input::placeholder,
.form-control textarea::placeholder { color: #bdbdbd; }

.form-control label.error {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #b23c3c;
}

.form-control input.error,
.form-control textarea.error { border-bottom-color: #b23c3c; }

.form-actions { margin-top: 2.5rem; text-align: center; }

.btn {
  display: inline-block;
  min-width: 11rem;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--azul);
  background: transparent;
  color: var(--azul);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover:not(:disabled) { background: var(--azul); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }

.form-message {
  margin-top: 1.5rem;
  min-height: 1.5rem;
  font-size: 0.9375rem;
  color: var(--azul);
}

.form-message.is-error { color: #b23c3c; }

/* Footer -------------------------------------------------------------- */

.footer {
  flex-shrink: 0;
  padding: 2.5rem 0 3rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--gris-medio);
}

.footer p { margin: 0; }
.footer a { color: var(--gris-medio); border-bottom-color: rgba(120, 120, 120, 0.35); }
.footer a:hover { color: var(--azul); }

/* Responsive ---------------------------------------------------------- */

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 0 2rem;
  }
  .header__logo img { width: 140px; }
  .header__nav {
    position: static;
    order: -1;
    text-align: right;
    margin-bottom: 1.5rem;
  }
  .statement p { font-size: 1rem; line-height: 1.95; }
  .main { padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}