/*
  Drónatökur.is
  Aðal stílsnið fyrir allar síður.
*/

:root {
  --color-bg: rgb(24, 24, 24);
  --color-bg-dark: rgb(0, 0, 0);
  --color-text: rgb(255, 255, 255);
  --color-text-muted: rgba(255, 255, 255, 0.78);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-card: rgba(255, 255, 255, 0.05);
  --color-card-hover: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.5);
  --max-width: 1100px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

/* ================= HEADER ================= */

.header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 15px 40px;
  background-color: var(--color-bg-dark);
}

.site-title {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.site-title a {
  text-decoration: none;
  transition: opacity var(--transition);
}

.site-title a:hover {
  opacity: 0.85;
}

.logo-link {
  display: inline-flex;
  justify-self: center;
  align-items: center;
}

.logo {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: invert(1);
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  transition: width var(--transition);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
}

.fyrsta_mynd {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(24, 24, 24, 0) 0%,
    rgba(24, 24, 24, 0.6) 60%,
    rgba(24, 24, 24, 1) 100%
  );
}

.main-text {
  position: absolute;
  z-index: 6;
  top: 12%;
  left: 50%;
  width: min(92vw, 900px);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.main-text span {
  display: block;
  letter-spacing: -0.02em;
}

.main-text span:first-child {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.05;
}

.main-text span:last-child {
  margin-top: 6px;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.95;
}

.hello-button-lineup {
  position: absolute;
  z-index: 6;
  top: 60%;
  left: clamp(20px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  transform: translateY(-50%);
}

.hello-button-text {
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.hello-button-text span {
  display: block;
}

.hello-button,
.cta-button,
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.hello-button {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(24, 24, 24, 0.75);
  color: var(--color-text);
  font-size: clamp(14px, 1.4vw, 18px);
  backdrop-filter: blur(6px);
}

.hello-button:hover {
  transform: translateY(-2px);
  background-color: rgba(30, 30, 30, 0.9);
}

.hello-button:active {
  transform: translateY(0);
  background-color: white;
  color: black;
}

/* ================= SECTIONS ================= */

.services,
.process,
.team {
  padding: 120px 30px;
  text-align: center;
}

.services {
  padding-top: 140px;
  padding-bottom: 90px;
}

.section-title {
  margin-bottom: 50px;
  font-size: 40px;
  line-height: 1.1;
}

.service-grid,
.team-grid {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 30px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.service-card,
.team-card,
.process-item,
.contact-card,
.stats-box,
.stat-card {
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgb(20, 20, 20);
  border-color: rgba(255, 255, 255, 0.105);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}


.service-slider {
  position: relative;
  width: calc(100% - 20px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgb(10, 10, 10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.service-slider img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.005);
  transition: opacity 1.1s ease, transform 4.8s ease;
  will-change: opacity, transform;
}

.service-slider img.active,
.service-slider img:only-child {
  opacity: 1;
}

.service-image-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(to top, rgba(255, 255, 255, 0.06), transparent 38%);
}

.service-content {
  position: relative;
  z-index: 4;
  padding: 24px 26px 30px;
  background: transparent;
}

.service-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-card p,
.process-item p,
.team-card p,
.cta-box p,
.contact-hero p,
.contact-text,
.contact-note p,
.footer p,
.stats-box p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.service-card p {
  max-width: 38ch;
  font-size: 15.5px;
}


/* ================= SEO INFO ================= */

.seo-info {
  display: flex;
  justify-content: center;
  padding: 35px 30px 110px;
}

.seo-info-container {
  width: min(100%, 920px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgb(18, 18, 18);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  text-align: left;
}

.seo-info h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.seo-info p:not(.eyebrow) {
  max-width: 78ch;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.seo-info p + p {
  margin-top: 16px;
}

/* ================= PROCESS ================= */

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 60px auto 0;
  text-align: left;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.process-item {
  position: relative;
  z-index: 1;
  padding: 26px 26px 26px 70px;
  border-radius: 14px;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step-number {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 50%;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background-color: rgb(40, 40, 40);
  font-size: 18px;
  font-weight: 800;
}

.process-item h3 {
  margin-bottom: 8px;
}

/* ================= CTA ================= */

.cta {
  display: flex;
  justify-content: center;
  padding: 110px 30px;
}

.cta-box {
  width: 100%;
  max-width: 1000px;
  padding: 55px 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-box h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 26px;
}

.cta-button {
  padding: 14px 26px;
  background: white;
  color: black;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* ================= ABOUT PAGE ================= */

.about-intro {
  display: flex;
  justify-content: center;
  padding: 120px 30px 60px;
}

.about-container {
  max-width: 820px;
}

.about-title {
  margin-bottom: 30px;
  font-size: 48px;
  text-align: center;
}

.about-text {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 60px;
}

.team-card {
  padding: 30px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background-color var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  background: var(--color-card-hover);
}

.team-image {
  display: flex;
  width: 90px;
  height: 90px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.team-card h3 {
  margin-bottom: 8px;
}

.team-card p {
  max-width: 45ch;
  margin: 0 auto;
  text-align: left;
}

/* ================= CONTACT PAGE ================= */

.contact-hero {
  padding: 110px 30px 50px;
  text-align: center;
}

.contact-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 62px);
}

.contact-hero p {
  max-width: 760px;
  margin: 0 auto;
}

.contact-section {
  padding: 40px 30px 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-card {
  padding: 32px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.contact-card h3 {
  margin-bottom: 18px;
}

.contact-item {
  margin-bottom: 18px;
}

.contact-label {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.contact-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  opacity: 0.9;
}

.contact-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.contact-note {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.35);
  color: white;
}

.form-row select option {
  background: rgb(24, 24, 24);
  color: white;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.form-button {
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 800;
}

.form-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

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

/* ================= STATS PAGE ================= */

.stats-page {
  display: flex;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding: 120px 30px;
}

.stats-box {
  width: min(92vw, 760px);
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.stats-box h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 54px);
}

.stats-box p {
  margin-bottom: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 28px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
}

.stat-number {
  margin-bottom: 8px;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
}

.stat-label,
.stats-loading {
  color: rgba(255, 255, 255, 0.75);
}

.stats-loading,
.stats-error {
  margin-top: 24px;
}

.stats-error {
  display: none;
  color: #ffb3b3;
}

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

.footer {
  margin-top: 120px;
  padding-top: 60px;
  background-color: var(--color-bg-dark);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: auto;
  padding: 0 30px;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  opacity: 0.6;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  margin-bottom: 0;
}

.social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform var(--transition), opacity var(--transition);
}

.social-links img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* ================= COOKIE BANNER ================= */

.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 18px;
  display: flex;
  width: min(92vw, 620px);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.cookie-banner p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.cookie-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-buttons button {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition);
}

.cookie-buttons button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

#accept-analytics {
  background: white;
  color: black;
}

#accept-analytics:hover {
  background: rgba(255, 255, 255, 0.86);
}

/* ================= ANIMATIONS ================= */

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .contact-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-section {
    padding: 30px 20px 80px;
  }

  .contact-hero,
  .about-intro {
    padding: 80px 20px 40px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.65;
  }

  .team,
  .process {
    padding: 80px 20px;
  }

  .team-grid {
    margin-top: 40px;
    gap: 20px;
  }

  .team-card {
    padding: 24px;
  }



  .seo-info {
    padding: 20px 20px 80px;
  }

  .seo-info-container {
    padding: 28px 24px;
  }

  .seo-info p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.7;
  }

  .services,
  .cta {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-title {
    margin-bottom: 35px;
    font-size: 32px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .footer {
    margin-top: 80px;
  }

  .footer-container {
    gap: 28px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
  }

  .site-title {
    font-size: 22px;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
  }

  .nav a {
    padding: 4px 0;
    font-size: 15px;
  }

  .nav a::after {
    bottom: -3px;
  }

  .hero {
    height: 85vh;
    min-height: 560px;
  }

  .main-text {
    top: 16%;
    width: 90%;
  }

  .main-text span:first-child {
    font-size: 34px;
  }

  .main-text span:last-child {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.15;
  }

  .hello-button-lineup {
    top: auto;
    right: 20px;
    bottom: 42px;
    left: 20px;
    max-width: none;
    transform: none;
  }

  .hello-button-text {
    font-size: 30px;
    line-height: 1.02;
  }

  .hello-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .services {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .service-grid {
    gap: 20px;
  }

  .service-slider {
    aspect-ratio: 16 / 10;
  }

  .seo-info {
    padding: 10px 16px 65px;
  }

  .seo-info-container {
    padding: 22px 20px;
    border-radius: 18px;
  }



  .process-steps {
    gap: 20px;
    margin-top: 35px;
  }

  .process-steps::before {
    left: 19px;
    top: 42px;
    bottom: 42px;
  }

  .process-item {
    padding: 20px 16px 20px 58px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta-box h2 {
    font-size: 30px;
  }

  .footer {
    padding-top: 45px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding: 22px 16px;
  }

  .social-links {
    gap: 14px;
  }

  .social-links img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 520px) {
  .cookie-banner {
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .header {
    gap: 8px;
    padding: 14px 12px 12px;
  }

  .site-title {
    font-size: 18px;
  }

  .logo {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero {
    min-height: 520px;
  }

  .main-text {
    top: 14%;
  }

  .main-text span:first-child {
    font-size: 28px;
  }

  .main-text span:last-child {
    font-size: 18px;
  }

  .hello-button-lineup {
    right: 16px;
    bottom: 30px;
    left: 16px;
  }

  .hello-button-text {
    font-size: 24px;
  }

  .hello-button {
    padding: 11px 18px;
    font-size: 14px;
  }

  .service-slider {
    aspect-ratio: 16 / 10;
  }


  .process-steps::before {
    left: 17px;
    top: 38px;
    bottom: 38px;
  }

  .process-item {
    padding: 18px 14px 18px 55px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-title {
    font-size: 30px;
  }

  .about-text,
  .team-card p,
  .process-item p,
  .service-card p,
  .contact-text,
  .contact-note p {
    font-size: 15px;
  }

  .contact-card,
  .team-card,
  .stats-box {
    padding: 20px;
  }

  .team-image {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    padding: 11px;
    font-size: 16px;
  }
}

/* ================= PROJECTS PAGE ================= */

/*
  Verkefnasíðan er sett upp sem clean 2-column portfolio grid.
  Markmið: tvö verkefni í línu á desktop, compact kort, myndin fyllir boxið án teygju.
*/
.projects-hero {
  padding: 62px 24px 24px;
  text-align: center;
}

.projects-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow,
.project-kicker {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.projects-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.projects-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.projects-section {
  width: min(100% - 48px, 1050px);
  margin: 0 auto;
  padding: 18px 0 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.featured-project,
.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.028)),
    rgb(18, 18, 18);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.featured-project:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
}

.featured-project-image,
.featured-project-video,
.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgb(9, 9, 9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-project-image::after,
.project-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.075), transparent 52%);
}

.featured-project-image picture,
.featured-project-image img,
.featured-project-video iframe,
.project-card-image picture,
.project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-project-image img,
.project-card-image img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.featured-project-video iframe {
  border: 0;
  background: rgb(9, 9, 9);
}

.featured-project-content,
.project-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.featured-project-content h3,
.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.project-meta,
.project-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-meta {
  margin-bottom: 12px;
}

.project-meta span,
.project-deliverables span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(255, 255, 255, 0.80);
  font-size: 11.5px;
  font-weight: 700;
}

.featured-project-content p:not(.project-kicker),
.project-card p:not(.project-kicker) {
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.project-deliverables {
  margin-top: auto;
  padding-top: 2px;
}

.project-card-upcoming {
  border-style: dashed;
}

.project-card-upcoming .project-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.10), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.project-card-upcoming .project-placeholder-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 26px;
  font-weight: 300;
}


.projects-more-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 520px;
  margin: 36px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.projects-more-note::before,
.projects-more-note::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22));
}

.projects-more-note::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.projects-more-note span {
  flex-shrink: 0;
}

.projects-section + .cta {
  padding-top: 64px;
  padding-bottom: 76px;
}

.projects-section + .cta .cta-box {
  max-width: 760px;
  padding: 38px 28px;
}

.projects-section + .cta .cta-box h2 {
  font-size: clamp(28px, 3.8vw, 40px);
}

@media (max-width: 900px) {
  .projects-hero {
    padding: 56px 20px 22px;
  }

  .projects-section {
    width: min(100% - 34px, 780px);
    padding-top: 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .projects-more-note {
    max-width: 100%;
    margin-top: 28px;
    gap: 11px;
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .projects-hero {
    padding: 44px 18px 18px;
  }

  .projects-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .projects-section {
    width: min(100% - 26px, 680px);
  }

  .featured-project,
  .project-card {
    border-radius: 17px;
  }

  .featured-project-image,
  .featured-project-video,
  .project-card-image {
    aspect-ratio: 16 / 10;
  }

  .featured-project-content,
  .project-card-content {
    padding: 18px 16px 20px;
  }

  .project-meta span,
  .project-deliverables span {
    font-size: 11.5px;
  }

  .projects-section + .cta {
    padding-top: 48px;
    padding-bottom: 60px;
  }

  .projects-section + .cta .cta-box {
    padding: 30px 20px;
  }
}

/* ================= FINAL MOBILE POLISH ================= */
/*
  Síðasta mobile yfirferð: heldur desktop útlitinu óbreyttu en gerir símaútgáfuna
  jafn clean og þægilega. Þessar reglur eru aftast svo þær yfirskrifi eldri mobile reglur.
*/

html,
body {
  width: 100%;
  overflow-x: hidden;
}

iframe,
video,
img {
  max-width: 100%;
}

@media (max-width: 768px) {
  :root {
    --mobile-page-pad: 18px;
  }

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

  .header {
    gap: 12px;
    padding: 16px var(--mobile-page-pad) 14px;
  }

  .site-title {
    font-size: 21px;
    line-height: 1.1;
  }

  .logo-link {
    order: -1;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: min(100%, 390px);
    margin: 2px auto 0;
  }

  .nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav a::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.11);
  }

  .hero {
    height: calc(100svh - 150px);
    min-height: 520px;
    max-height: 760px;
  }

  .main-text {
    top: 13%;
  }

  .hello-button-lineup {
    right: var(--mobile-page-pad);
    bottom: 34px;
    left: var(--mobile-page-pad);
    gap: 13px;
  }

  .hello-button-text {
    max-width: 320px;
  }

  .hello-button,
  .cta-button,
  .form-button {
    min-height: 44px;
  }

  .services,
  .process,
  .team,
  .cta {
    padding-right: var(--mobile-page-pad);
    padding-left: var(--mobile-page-pad);
  }

  .services {
    padding-top: 76px;
    padding-bottom: 58px;
  }

  .process,
  .team {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .service-grid,
  .team-grid {
    gap: 18px;
  }

  .service-card {
    border-radius: 20px;
  }

  .service-slider {
    width: calc(100% - 16px);
    margin: 8px 8px 0;
    border-radius: 15px;
    aspect-ratio: 16 / 9;
  }

  .service-content {
    padding: 20px 20px 24px;
  }

  .service-content::before {
    left: 20px;
    right: 20px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    max-width: none;
    font-size: 15px;
  }

  .process-steps {
    max-width: 620px;
  }

  .process-item {
    border-radius: 14px;
  }

  .cta {
    padding-top: 70px;
    padding-bottom: 72px;
  }

  .cta-box {
    padding: 32px 22px;
    border-radius: 16px;
  }

  .cta-box h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .about-intro,
  .contact-hero {
    padding: 66px var(--mobile-page-pad) 34px;
  }

  .about-title,
  .contact-hero h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .about-text {
    font-size: 16px;
  }

  .team-card,
  .contact-card,
  .stats-box {
    border-radius: 16px;
  }

  .contact-section {
    padding: 24px var(--mobile-page-pad) 78px;
  }

  .contact-grid {
    gap: 18px;
  }

  .form-button {
    width: 100%;
  }

  .stats-page {
    padding: 70px var(--mobile-page-pad);
  }

  .footer {
    margin-top: 72px;
  }

  .footer-container {
    gap: 30px;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  :root {
    --mobile-page-pad: 16px;
  }

  .header {
    padding-top: 14px;
  }

  .site-title {
    font-size: 20px;
  }

  .nav {
    width: 100%;
    gap: 8px;
  }

  .nav a {
    min-height: 36px;
    padding: 8px 8px;
    font-size: 13.5px;
  }

  .hero {
    min-height: 500px;
  }

  .main-text span:first-child {
    font-size: clamp(29px, 10vw, 36px);
  }

  .main-text span:last-child {
    font-size: clamp(18px, 6vw, 23px);
  }

  .hello-button-text {
    font-size: clamp(24px, 8vw, 30px);
  }

  .projects-hero {
    padding: 42px var(--mobile-page-pad) 18px;
  }

  .projects-hero h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .projects-section {
    width: calc(100% - 2 * var(--mobile-page-pad));
    padding-top: 12px;
  }

  .projects-grid {
    gap: 18px;
  }

  .featured-project,
  .project-card {
    border-radius: 16px;
  }

  .featured-project-video,
  .featured-project-image,
  .project-card-image {
    aspect-ratio: 16 / 9;
  }

  .featured-project-content,
  .project-card-content {
    padding: 17px 16px 19px;
  }

  .featured-project-content h3,
  .project-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .project-meta,
  .project-deliverables {
    gap: 6px;
  }

  .project-meta span,
  .project-deliverables span {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .featured-project-content p:not(.project-kicker),
  .project-card p:not(.project-kicker) {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .projects-section + .cta {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .projects-section + .cta .cta-box {
    padding: 28px 18px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .nav a {
    font-size: 12.8px;
    letter-spacing: -0.01em;
  }

  .service-content,
  .featured-project-content,
  .project-card-content,
  .contact-card,
  .team-card,
  .stats-box {
    padding-right: 15px;
    padding-left: 15px;
  }

  .project-meta span,
  .project-deliverables span {
    font-size: 10.5px;
  }
}

/* ================= PROJECTS MOBILE FIX ================= */
/*
  Lagfæring fyrir verkefnasíðuna á mobile.
  Breytir ekki texta eða uppsetningu á desktop, aðeins fínpússar símaútgáfuna.
*/

.featured-project-video iframe {
  min-width: 0;
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 48px var(--mobile-page-pad) 18px;
  }

  .projects-hero-content {
    max-width: 560px;
  }

  .projects-hero h2 {
    margin-bottom: 10px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
  }

  .projects-section {
    width: calc(100% - 2 * var(--mobile-page-pad));
    max-width: 560px;
    padding-top: 10px;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .featured-project,
  .project-card {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
  }

  .featured-project:hover,
  .project-card:hover {
    transform: none;
  }

  .featured-project-video,
  .featured-project-image,
  .project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .featured-project-video iframe {
    width: 100%;
    height: 100%;
  }

  .featured-project-content,
  .project-card-content {
    padding: 18px 16px 20px;
  }

  .project-kicker {
    margin-bottom: 8px;
    font-size: 10.5px;
  }

  .featured-project-content h3,
  .project-card h3 {
    margin-bottom: 11px;
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.12;
  }

  .featured-project-content p:not(.project-kicker),
  .project-card p:not(.project-kicker) {
    margin-bottom: 13px;
    font-size: 14.5px;
    line-height: 1.62;
  }

  .project-meta,
  .project-deliverables {
    gap: 6px;
  }

  .project-meta span,
  .project-deliverables span {
    min-height: 25px;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.1;
  }

  .projects-more-note {
    width: 100%;
    margin-top: 30px;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .projects-more-note span {
    max-width: 170px;
    line-height: 1.25;
  }

  .projects-section + .cta {
    padding-top: 46px;
    padding-bottom: 64px;
  }

  .projects-section + .cta .cta-box {
    width: 100%;
    max-width: 560px;
    padding: 30px 20px;
  }
}

@media (max-width: 430px) {
  .nav a {
    white-space: normal;
    text-align: center;
  }

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

  .projects-section {
    width: calc(100% - 28px);
  }

  .featured-project-content,
  .project-card-content {
    padding: 17px 15px 19px;
  }

  .project-meta span,
  .project-deliverables span {
    font-size: 10.8px;
  }
}

@media (max-width: 340px) {
  .projects-section {
    width: calc(100% - 22px);
  }

  .featured-project-content,
  .project-card-content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .project-meta span,
  .project-deliverables span {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10.3px;
  }
}
