/* Reset / basic layout */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}


/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* Hero section */
.hero-section {
  position: relative;
  background: url('../images/Hero_background.jpg') center center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh; 
  color: white;
  padding: 0 1rem;
  position: relative;
}

.hero-content {
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.main-title {
  white-space: nowrap;
  overflow: visible;  /* show full text */
  font-size: clamp(2.2rem, 8vw, 10rem);
  font-weight: 1000;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  margin-top: 10rem;
}


.subtitle {
  font-size: clamp(1.6rem, 2vw + 1rem, 5rem); /* scale for mobile */
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 4rem;
}

/* Hnappur á forsíðu banner */
.hero-button {
  display: inline-block;
  padding: 1.5rem 3rem;
  background-color: #007BFF; /* Or your brand color */
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 3rem;
}

.hero-button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .hero-section {
    background-position: top center; /* cover / contain for other images */
    height: 100vh; /* 90 */
    background-size: cover; /* 280% */
  }

  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }

  .main-title {
    /* Adjust the value as needed */
    margin-top: 1.5rem;
  }

  .subtitle {
    /* Adjust the value as needed */
  }

  .hero-button {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;

  }
}



header {
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
}

/* Shrunk header on scroll */
header.shrink {
  padding: 0.25rem 0;
  background: rgba(0, 0, 0, 0.8);
}



#main-header {
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  color: white; /* make text white for contrast */
  padding: 10px 20px; /* optional: add some padding */
  position: fixed; /* optional: keep header on top */
  width: 100%;
  z-index: 1000; /* keep it above other elements */
}


.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem; /* Keep horizontal padding reasonable */
}

.logo {
  font-size: 1.5em;
  margin: 0;
  color: white;
  transition: font-size 0.3s ease;
}

header.shrink .logo {
  font-size: 1.2em;
}

.logo img {
  height: 50px;
  transition: height 0.3s ease;
}

header.shrink .logo img {
  height: 35px;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 1.2rem; /* gap: 25px;*/
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4em;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #ffcc00;
}

/* Hide menu toggle button by default */
.menu-toggle {
  color: white; /* Makes the ☰ icon white */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display:none;
}


/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  #navbar {
    width: 100%;
    display: none; /* hidden by default */
  }

  #navbar.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 0.5rem 0;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 0.5rem;
  }
}







/* About */
.about-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto 3rem auto; /* topp, hægri, bottom, vinstri */
  max-width: 800px;
  text-align: center;
}

.about-heading {
  text-align: center;
  font-size: clamp(1rem, 2vw + 1rem, 2.8rem); /* scale for mobile */
  margin-bottom: 2rem;
}

.about-h2{
  font-size: clamp(1.0rem, 2vw + 1rem, 2.0rem); /* scale for mobile */
}

.about {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img  {
  width: 100%; /* breytta í auto ef við viljum portrait myndir */
  max-width: 100%;
  height: 300px;               /* Uniform height var 300px fyrst */
  object-fit: cover;          /* Crops excess and maintains aspect */
  border-radius: 10px; 
}

.handshake-image {
  text-align: center;
  margin: 1.5rem 0;
}

.handshake-image img {
  width: 80%;
  max-width: 80%;
  height: auto;
  max-height: 300px; /* 👈 Limits how tall the image can get */
  border-radius: 0.5rem;
  object-fit: cover; /* Ensures it crops gracefully if needed */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


@media (max-width: 480px) {
  .handshake-image img {
    width: 100%;
    max-width: 100%;
  }
}


.about-text {
  flex: 1;
  min-width: 280px;
}

.reverse {
  flex-direction: row-reverse;
}


/* custom bullet */
.services {
  padding: 60px 20px;
  background-color: #fff;
}

#services-h2{
  text-align: left;
  font-size: clamp(1.2rem, 2vw + 1rem, 2.4rem); /* scale for mobile */
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2em; /* lætur titill passa við bullets */
}


.services-list {
  list-style: none;
  padding-left: 1.5rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  position: relative;
}

.services-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.75em;
  font-size: 1.2rem;
  line-height: 1.6;
  font-size: clamp(0.8rem, 2vw + 1rem, 1.2rem); /* scale for mobile */
}

.services-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #007BFF;
  font-size: 1.2em;
  line-height: 1;
}

.services-note {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem);
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.mobile-break {
  display: none;
}

/* === Responsive adjustments === */
@media screen and (max-width: 768px) {
  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .reverse {
    flex-direction: column;
  }

  .about-text {
    padding: 10px 0;
  }

    .mobile-break {
    display: inline;
  }

  .services-note {
    text-align: center;
  }
}


/* === Prices section === */

.pricing {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.pricing h2 {
  font-size: 2.6em;
  margin-bottom: 40px;
}

.price-table {
  max-width: 800px;
  margin: 0 auto;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: white;
  padding: 25px 30px; /* Increased padding */
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.4rem;
}

.price-item .label {
  font-weight: 500;
  color: #333;
  max-width: 75%;
  line-height: 1.4;
  word-break: break-word;
  text-align: left;
}

.price-item .value {
  font-weight: bold;
  color: #004080;
  white-space: normal;
  margin-left: 10px;
  /*max-width: 150px;
  word-break: break-word; */
}


@media screen and (max-width: 600px) {
  .pricing {
    padding: 40px 20px; /* Reduced padding */
    background: #f9f9f9;
    text-align: center;
  }

  .pricing h2 {
    font-size: 2em;
    margin-bottom: 30px; /* Slightly reduced */
  }

  .price-table {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced space between price items */
  }

  .price-item {
    display: flex;
    flex-direction: column; /* Stack label and price */
    align-items: center;     /* Center everything */
    background: white;
    padding: 12px 16px;      /* Less padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
  }

  .price-item .label {
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 6px; /* Small spacing between label and price */
  }

  .price-item .value {
    font-weight: bold;
    color: #004080;
    white-space: nowrap; /* Keep price in one line */
  }
}




/* conntact form */
/* Flex row for address + postcode */
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Each field takes equal space */
.form-row .form-group {
  flex: 1 1 200px;
}

/* Ensure inputs still full-width inside their flex item */
.form-row .form-group input {
  width: 100%;
  box-sizing: border-box;
}

#contact .container > h2 {
  text-align: center;
  margin-bottom: 2rem; /* adjust space below title */
  font-size: 2.2em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button[type="submit"] {
  background-color: #004080;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Form layout (optional for better spacing) */
form#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

/* Red asterisk for required fields */
.required {
  color: red;
  margin-left: 0.25rem;
  font-weight: bold;
}

/* Larger textarea for Skilaboð */
textarea#message {
  height: 150px;
  resize: vertical;
}

/* Apply box-sizing to everything */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Shared style for inputs, textarea, and button */
form#contact-form input,
form#contact-form textarea,
form#contact-form button {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Specific styles for textarea */
form#contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Specific styles for button */
form#contact-form button {
  background-color: #0077cc;
  color: white;
  border: none; /* Already styled above */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form#contact-form button:hover {
  background-color: #005fa3;
}

/* Ensure all form labels have consistent weight */
#contact-form label {
  font-weight: 500;
}




/* Base footer styling */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
}

/* Center copy text */
.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 1.5rem;
}

/* Container flex */
.footer-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Three‑column layout */
.footer-cols {
  display: flex;
  width: 100%;
  max-width: 1200px;  /* or whatever you prefer */
  margin: 0 auto;
}

/* Each column takes equal space */
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
}

/* Alignment per column */
.footer-left  { text-align: left; }
.footer-center { text-align: center; }
.footer-right { text-align: right; }

/* Logo stays its natural size */
.footer-center .footer-logo {
  max-height: 60px;
  margin: 0 auto;
}


/* Links style */
.footer-right a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.footer-right a:hover {
  border-bottom-style: solid;
}

/* Responsive: stack under each other on narrow screens */
@media (max-width: 600px) {
  .footer-cols {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}


