/* ==========================================================
   Bókhald & kennsla ehf – static site
   ========================================================== */
:root {
  --teal: #007c94;
  --teal-overlay: rgba(0, 124, 148, 0.82);
  --orange: #ff9933;
  --orange-dark: #f2861c;
  --bg-light: #edf0f3;
  --bg-white: #ffffff;
  --card: #f4f4f4;
  --text: #3d4451;
  --heading: #000000;
  --footer: #040404;
  --container: 1100px;
  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-light);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 .8em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Placeholder look for images that haven't been added yet */
.img-ph {
  background-color: #dfe4e8;
  background-image: linear-gradient(45deg, #d6dce1 25%, transparent 25%, transparent 75%, #d6dce1 75%),
                    linear-gradient(45deg, #d6dce1 25%, transparent 25%, transparent 75%, #d6dce1 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 11px 26px;
  border-radius: 30px;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange-dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 18px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo img { height: 62px; width: auto; }
.logo img.img-ph { width: 120px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a { color: #fff; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.main-nav .nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--teal);
  background-size: cover;
  background-position: center;
  color: #fff;
  border-bottom-right-radius: 220px;
  overflow: hidden;
}
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: var(--teal-overlay); }
.hero > .container { position: relative; }
.hero-home { padding: 160px 0 100px; }
.eyebrow { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--orange); border-radius: 50%; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); font-weight: 700; margin-bottom: 25px; }
.hero-home .hero-content { max-width: 560px; }
.hero-home p { font-size: 17px; margin-bottom: 25px; }

.hero-page { padding: 130px 0 90px; text-align: center; }
.hero-page h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 600; margin: 0; }
.hero-page p { max-width: 880px; margin: 15px auto 0; font-size: 14px; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--bg-white); }
.section-title { text-align: center; font-size: 36px; font-weight: 600; margin-bottom: 60px; }
.small-label { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--heading); margin-bottom: 10px; display: block; }

/* About intro (home) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid h2 { font-size: 36px; font-weight: 600; margin-bottom: 25px; }
.about-grid p { font-size: 14px; }
.fb-placeholder { width: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; color: #555; font-size: 13px; text-align: center; padding: 20px; }

/* CTA band */
.cta-band {
  position: relative;
  background-color: var(--teal);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 0;
}
.cta-band.has-image::before { content: ""; position: absolute; inset: 0; background: var(--teal-overlay); }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band .line { width: 45px; height: 3px; background: rgba(255,255,255,.7); margin-bottom: 20px; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 600; }
.cta-band p { font-size: 13px; opacity: .85; max-width: 660px; margin: 0; }
.cta-band .btn { flex-shrink: 0; }

/* Check-list of services */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: 1000px; margin: 0 auto; }
.check-item { display: flex; gap: 16px; margin-bottom: 20px; }
.check-icon { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.check-icon svg { width: 16px; height: 16px; fill: #fff; }
.check-item h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.check-item p { font-size: 13.5px; margin: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; align-items: start; }
.testimonials h2 { font-size: 40px; font-weight: 600; }
.testimonials-intro p { font-size: 14px; }
.testimonial { background: var(--card); padding: 40px 35px; min-height: 360px; font-size: 14px; }
.testimonial hr { border: 0; border-top: 2px solid #ddd; margin: 20px 0; }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; }
.testimonial-meta strong { display: block; font-family: var(--font-heading); color: var(--heading); font-size: 14px; }
.stars { color: var(--orange); letter-spacing: 4px; font-size: 13px; }

/* Members logos */
.members { padding-top: 0; }
.members h2 { text-align: center; font-size: 32px; font-weight: 600; margin-bottom: 40px; }
.members-logos { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.members-logos a { display: block; width: 120px; height: 60px; }
.members-logos img { width: 100%; height: 100%; object-fit: contain; }

/* Split intro (sub pages): heading left, orange line, text right */
.split { display: grid; grid-template-columns: 1fr 2fr; align-items: start; }
.split-left { padding-right: 50px; }
.split-left h2 { font-size: 46px; font-weight: 600; margin: 0; }
.split-right { border-left: 2px solid var(--orange); padding: 0 0 0 45px; min-height: 110px; font-size: 14px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 70px; }
.card { background: var(--bg-light); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.08); overflow: hidden; display: flex; flex-direction: column; }
.card-img { height: 190px; width: 100%; object-fit: cover; border-radius: 14px; }
.card-body { padding: 30px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.card-body p { font-size: 13.5px; }
.card-link { margin-top: auto; color: var(--orange); font-size: 12px; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.card-link::before { content: ""; border-left: 6px solid var(--orange); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* Um okkur */
.profile-photo { width: 230px; height: 290px; object-fit: cover; margin: 0 0 25px auto; }
.profile-name { font-size: 44px; font-weight: 600; }
.bio p { font-size: 14.5px; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 90px; }
.credential { display: flex; gap: 20px; }
.credential-icon { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.credential-icon svg { width: 20px; height: 20px; fill: #fff; }
.credential h3 { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.credential p { font-size: 14px; }

/* Hafa samband */
.contact h2 { font-size: 46px; font-weight: 600; margin-bottom: 10px; }
.dashes { display: flex; gap: 5px; margin-bottom: 40px; }
.dashes span { width: 18px; height: 4px; background: var(--orange); transform: skewX(-30deg); }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.contact-list svg { width: 15px; height: 15px; fill: var(--heading); flex-shrink: 0; }
.contact-list a:hover { color: var(--orange); }
.follow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.follow strong { font-family: var(--font-heading); color: var(--heading); font-size: 14px; }
.follow a svg { width: 16px; height: 16px; fill: var(--heading); }
.follow a:hover svg { fill: var(--orange); }
.map-wrap { width: 100%; height: 450px; display: flex; align-items: center; justify-content: center; color: #555; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; font-size: 14px; }
.footer-top { padding: 50px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 55px; width: auto; margin-bottom: 40px; }
.footer-logo img.img-ph { width: 110px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 20px; font-weight: 600; margin: 40px 0 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.75; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-social { display: flex; gap: 12px; }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }
.footer-social a:hover svg { fill: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .check-grid, .testimonials, .split, .credentials, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split-left { padding-right: 0; margin-bottom: 30px; }
  .split-right { padding-left: 25px; }
  .profile-photo { margin: 0 0 25px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero { border-bottom-right-radius: 120px; }
  .footer-grid h4 { margin-top: 10px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; margin-top: 18px; background: var(--teal); display: none; padding: 15px 20px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 12px; }
  .main-nav .nav-cta-mobile { display: block; }
  .main-nav .nav-cta-mobile .btn { color: #fff; }
  .cards { grid-template-columns: 1fr; }
  .hero { border-bottom-right-radius: 70px; }
  .hero-home { padding: 130px 0 70px; }
  .section { padding: 60px 0; }
  .split-left h2, .contact h2, .profile-name { font-size: 36px; }
  .footer-bottom .container { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
