@charset "utf-8";

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #45453c;
  background-color: #fff;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

h2 {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease-out, transform 0.9s ease-out;
}

h2.visible {
  animation: zoomIn 0.8s ease-out forwards;
}
/* h1: stærsta fyrirsögn, notuð efst */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #a45b45;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* h2: undirkaflafyrirsagnir */
h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #45453c;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  border-left: 4px solid #a45b45;
  padding-left: 0.7rem;
}

h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #45453c;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #a45b45;
  padding-left: 0.4rem;
}

.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  width: 100%;
  background-color: #f5eedd;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  background-color: #f5eedd;
}

.logo img {
  height: 60px;
	padding-bottom: 0.1rem;
}

.language-switch {
	display: inline-block;
	margin-right: 1rem;
	font-size: 0.9rem;
}

.language-switch a {
	color: #45453c;
	text-decoration: none;
	margin: 0 2px;
}

.language-switch a.active {
	font-weight: bold;
	text-decoration: underline;
}

.contact-info {
  text-align: right;
  font-size: 0.9rem;
}

.contact-info a {
  color: #a45b45;
  text-decoration: none;
  margin-left: 1rem;
}

.social {
  font-size: 1.2rem;
  margin-left: 0.5rem; font color: white;
  color: white;
  text-decoration: none;
}

.social:hover {
  color: #45453c;
}

.login-button {
  display: inline-block;
  padding: 0.4rem 0.4rem 0.4rem 0.8rem;
  background-color: #a45b45;
	font-size: 0.7rem;
  color: white !important; /* Gildir bæði fyrir texta og icon */
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.login-button i {
  margin-right: 0.5rem;
  color: white !important; /* tryggir hvítt icon */
}

.login-button:hover {
  background-color: #45453c; /* dekkri útgáfa við hover */
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #a45b45;
  cursor: pointer;
  padding: 0.5rem 0;
}

.main-nav {
  width: 100%;
  font-size: 0.9rem;
  background-color: #45453c;
  border-top: 4px solid #a45b45;
	border-bottom: 1px solid #a45b45;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.8rem 1rem;
  border-left: 1px solid #a45b45;
  border-right: 1px solid #a45b45;
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  transition: background-color 0.2s;
}

.main-nav a:hover {
  background-color: #a45b45;
  color: #fff;
}

.main-nav a.active {
  background-color: #a45b45;
  color: #fff;
}

.content {
  padding: 2rem 0;
}

.intro-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.intro-text {
  flex: 1 1 300px;
}

.intro-image {
  flex: 1 1 300px;
  max-width: 700px;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
	margin-top: 4.3rem;
  margin-bottom: 1rem;

  /* Drop shadow */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
  }

  .intro-image {
    max-width: 100%;
		margin-top: -4.3rem;
  }
}

.site-footer {
  background-color: #45453c;
  color: #fff;
  padding: 2rem 1rem 2rem 1rem;
  font-size: 0.9rem;
	margin-top: -1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-left,
.footer-right {
  flex: 1;
}

.footer-left a,
.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-left h4 {
  margin-bottom: -0.6rem;
	margin-top: 0.6rem;
	font-size: 2rem;
	letter-spacing: 0.15rem;
	color: #f47e2c;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  margin-right: 1rem;
  font-size: 1.8rem;
}

.footer-right img {
  max-width: 60%;
  margin-bottom: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.show {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-top: 1px solid #666;
  }
}

/* Umsagnabox */
.testimonial-box {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0rem 1.8rem 1.8rem 1.8rem;
  background-color: #e5e5e5;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
}

/* Hver umsögn – látum þær vera block í stað absolute */
.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-style: italic;
}

/* Þegar virk */
.testimonial.active {
  display: block;
  opacity: 1;
}

/* Efnisform */
.testimonial .umsfyr {
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 0.4rem;
}

.testimonial p {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: no;
  margin-top: 0.5rem;
}

