:root {
  --deep-blue: #063f68;
  --blue: #0b6ea8;
  --turquoise: #12b8b4;
  --sea: #d7f6f3;
  --white: #ffffff;
  --mist: #f4fbfc;
  --ink: #173142;
  --muted: #5d7380;
  --shadow: 0 18px 45px rgba(6, 63, 104, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 184, 180, 0.18);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(18, 184, 180, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--deep-blue);
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--deep-blue);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(11, 110, 168, 0.16);
  border-radius: 8px;
  background: var(--mist);
}

.language-separator {
  color: rgba(6, 63, 104, 0.42);
  font-weight: 800;
}

.language-button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--deep-blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-blue), var(--turquoise));
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--turquoise);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--sea);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep-blue);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 150px max(24px, calc((100% - 1120px) / 2)) 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 32px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(6, 63, 104, 0.9), rgba(6, 63, 104, 0.7) 44%, rgba(18, 184, 180, 0.2)),
    url("assets/crisval-office.png") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -90px -8%;
  height: 180px;
  background: var(--white);
  clip-path: ellipse(58% 42% at 50% 100%);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--turquoise);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #94fff8;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 550px;
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
  box-shadow: 0 14px 28px rgba(18, 184, 180, 0.28);
}

.secondary {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.9);
}

.hero-card {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card span,
.hero-card strong,
.hero-card a {
  display: block;
}

.hero-card span {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card span:first-child {
  margin-top: 0;
}

.hero-card strong,
.hero-card a {
  color: var(--deep-blue);
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.contact-details > p,
.about-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid rgba(11, 110, 168, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fdfd);
  box-shadow: 0 10px 24px rgba(6, 63, 104, 0.08);
}

.service-card-wide {
  grid-column: span 3;
  min-height: 160px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--deep-blue);
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--deep-blue);
  line-height: 1.2;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.about-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  background: linear-gradient(90deg, var(--mist), #ffffff);
}

.about-image {
  min-height: 470px;
  background:
    linear-gradient(145deg, rgba(6, 63, 104, 0.2), rgba(18, 184, 180, 0.22)),
    url("assets/crisval-hero.png") center/cover;
}

.about-content {
  width: min(560px, calc(100% - 48px));
  align-self: center;
  padding: 76px 0 76px 54px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--sea);
  color: var(--deep-blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 184, 180, 0.2);
}

.contact-form label {
  color: var(--deep-blue);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 110, 168, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(18, 184, 180, 0.22);
  border-color: var(--turquoise);
}

.form-button {
  margin-top: 10px;
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--white);
  background: #16c766;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(22, 199, 102, 0.35);
}

.footer {
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  background: var(--deep-blue);
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  .hero-card {
    max-width: 430px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-wide {
    grid-column: span 2;
  }

  .about-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .about-content {
    width: min(680px, calc(100% - 32px));
    padding: 58px 0;
    margin: 0 auto;
  }

  .about-image {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .nav {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand small {
    max-width: 120px;
  }

  .language-button {
    min-width: 34px;
    min-height: 34px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 56px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
  }

  .section {
    width: calc(100% - 24px);
    padding: 62px 0;
  }

  .contact-form {
    padding: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
