
/* ==========================================
   BOX800 - HAFA SAMBAND
   ========================================== */

/* GRUNNSTILLINGAR */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  line-height: 0.98;
  margin-top: 0;
}

h1 span,
h2 span {
  color: #c6ccd6;
}

p {
  line-height: 1.8;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 6%;
}

.kicker {
  display: block;
  color: #c6ccd6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

/* ==========================================
   HERO - HAFA SAMBAND
   ========================================== */

.contact-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 110px 6%;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.93),
      rgba(0, 0, 0, 0.4)
    ),
    url("images/team.webp") center / cover;
}

.hero-inner {
  width: 100%;
  max-width: 850px;
}

.contact-hero h1 {
  font-size: clamp(75px, 11vw, 150px);
  margin-bottom: 30px;
}

.contact-hero p {
  color: #e0e0e0;
  max-width: 540px;
  font-size: 18px;
  margin-bottom: 35px;
}

/* ==========================================
   HNAPPAR
   ========================================== */

.btn {
  display: inline-block;
  padding: 19px 30px;
  background: #c6ccd6;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================
   SAMBANDSFORM
   ========================================== */

.contact-form {
  width: 100%;
  max-width: 650px;
  margin-top: 40px;
  scroll-margin-top: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-group label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c6ccd6;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 17px 18px;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid #555555;
  border-radius: 0;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c6ccd6;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: #c6ccd6;
  box-shadow: 0 0 0 2px rgba(198, 204, 214, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-submit {
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* ==========================================
   SAMSKIPTAUPPLÝSINGAR
   ========================================== */

.contact-info {
  padding: 110px 0;
}

.contact-info h2,
.map-section h2 {
  font-size: clamp(60px, 8vw, 110px);
  margin-bottom: 45px;
}

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

.info-card {
  padding: 40px 30px;
  background: #171717;
  border: 1px solid #303030;
  min-height: 290px;
}

.card-number {
  color: #c6ccd6;
  font-weight: 800;
  font-size: 13px;
}

.info-card h3 {
  font-size: 38px;
  margin: 25px 0;
}

.info-card p {
  color: #bdbdbd;
  font-size: 15px;
}

.info-card .address {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.info-card a {
  color: #c6ccd6;
  font-weight: 800;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.info-card a:hover {
  color: #ffffff;
}

/* ==========================================
   KORT
   ========================================== */

.map-section {
  padding: 110px 0;
  background: #151515;
}

.map-section p {
  color: #bdbdbd;
  margin-bottom: 35px;
}

.map-frame {
  overflow: hidden;
  border: 1px solid #333333;
}

.map-frame iframe {
  display: block;
  width: 100%;
}

.map-link {
  display: inline-block;
  margin-top: 25px;
  color: #c6ccd6;
  font-size: 13px;
  font-weight: 800;
}

.map-link:hover {
  color: #ffffff;
}

/* ==========================================
   LOKAHLUTI
   ========================================== */

.contact-bottom {
  padding: 120px 6%;
  text-align: center;
}

.contact-bottom h2 {
  font-size: clamp(70px, 10vw, 140px);
  margin-bottom: 25px;
}

.contact-bottom p {
  color: #bdbdbd;
  margin-bottom: 35px;
}

/* ==========================================
   FOOTER
   ========================================== */

.contact-footer {
  padding: 35px 6%;
  border-top: 1px solid #303030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-footer img {
  width: 90px;
  height: auto;
}

.contact-footer p {
  color: #bdbdbd;
  font-size: 12px;
}

.contact-footer a {
  color: #c6ccd6;
  font-size: 12px;
  font-weight: 800;
}

.contact-footer a:hover {
  color: #ffffff;
}

/* ==========================================
   SPJALDTÖLVUR OG SÍMAR
   ========================================== */

@media (max-width: 768px) {

  .contact-hero {
    min-height: 520px;
    padding: 80px 6%;
  }

  .contact-hero h1 {
    font-size: clamp(60px, 12vw, 90px);
  }

  .contact-hero p {
    font-size: 16px;
  }

  .contact-info,
  .map-section {
    padding: 75px 0;
  }

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

  .info-card {
    min-height: auto;
  }

  .map-frame iframe {
    height: 320px;
  }

  .contact-bottom {
    padding: 85px 6%;
  }

  .contact-footer {
    flex-direction: column;
    text-align: center;
  }

}

/* ==========================================
   MINNI SÍMAR
   ========================================== */

@media (max-width: 600px) {

  .contact-hero {
    padding: 65px 6%;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info h2,
  .map-section h2 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .contact-bottom h2 {
    font-size: clamp(55px, 12vw, 85px);
  }

  .contact-footer {
    gap: 15px;
  }

}

/* ==========================================
   AÐGENGI
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

}

/* FALINN RUSLPÓSTSREITUR */

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
