/* =========================
   FONT
========================= */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/spacegrotesk/static/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/spacegrotesk/static/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE LAYOUT
========================= */
html, body {
  height: 100%;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
}

/* =========================
   TEXT SELECTION
========================= */

::selection {
  background: #000;
  color: #fff;
}

::-moz-selection {
  background: #000;
  color: #fff;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
  flex: 1;
  width: 100%;
  padding: 0 15px;
  min-height: calc(100vh - 120px);
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  user-select: none;
}

/* ICON NAV */
.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  font-size: 1.1rem;

  border: 1px solid #ddd;
  border-radius: 50%;

  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* =========================
   HERO
========================= */
.hero {
  margin-top: 70px;
  padding: 60px 20px;

  width: 100%;
  max-width: 900px;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 10px;
}

.hero p {
  font-size: clamp(0.9rem, 3vw, 1rem);
  opacity: 0.7;
}

/* =========================
   FORM
========================= */

input[type="text"] {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  margin-top: 20px;

  border: 1px solid #000;
  font-family: inherit;
  font-size: 1rem;
}

input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  margin-top: 20px;

  border: 1px solid #000;
  font-family: inherit;
  font-size: 1rem;
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;

  padding: 12px 22px;
  border: 1px solid #000;

  text-decoration: none;
  color: #000;
  font-size: 1rem;

  transition: all 0.25s ease;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* =========================
   FORM MESSAGE POPUP
========================= */

.form-message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  
  padding: 8px 14px;
  font-size: 0.85rem;

  border: 1px solid;
  background: #fff;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;

  transition: all 0.25s ease;
}

/* show state */
.form-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* types */
.form-message.success {
  border-color: #0a8a3a;
  color: #0a8a3a;
}

.form-message.error {
  border-color: #b00020;
  color: #b00020;
}

/* =========================
   SOCIAL SECTION
========================= */

.socials {
  width: 100%;
  max-width: 500px;
  margin: auto;
  margin-bottom: 40px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid #000;
  padding: 12px 14px;
}

.social-item i {
  font-size: 1.2rem;
}

.social-name {
  flex: 1;
  margin-left: 14px;
  font-size: 0.95rem;
}

.open-link {
  text-decoration: none;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid #000;
  transition: all 0.25s ease;
}

.open-link:hover {
  background: #000;
  color: #fff;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #000;
  color: #fff;
  text-align: center;

  padding: 30px 15px;
  margin-top: 40px;
}

.footer p {
  margin: 6px 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================
   MOBILE FIX
========================= */
/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .hero {
    max-width: 100%;
    padding: 50px 15px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  input[type="email"],
  .btn {
    max-width: 100%;
  }

  /* FIXED SOCIAL SECTION */
  .socials {
    width: 100%;
    padding: 0 12px;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 40px;
  }

  .social-item {
    padding: 10px 12px;
  }

  .social-item i {
    font-size: 1rem;
  }

  .social-name {
    font-size: 0.85rem;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .open-link {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .footer {
    padding: 25px 10px;
  }
}