/* ION Ráðgjöf - www.ionradgjof.is */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }

:root {
  --ink: #2A1E3B;
  --ink-hover: #3a2b52;
  --ink-deep: #211830;
  --cream: #F6F2EC;
  --section: #EFEAE2;
  --text: #4D4D4D;
  --rust: #8B3617;
  --accent: #C98568;
  --radius: 16px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--cream); }

img { display: block; max-width: 100%; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; width: 100%; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Shared transitions */
.nav-link, .btn, .card, .contact-link, .footer a {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 236, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 30, 59, 0.08);
}
.site-header .container {
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 46px; height: 46px; background: #FFFFFF; border-radius: 12px;
  border: 1px solid rgba(42, 30, 59, 0.06); object-fit: contain;
}
.brand span { font-weight: 700; letter-spacing: 0.04em; font-size: 18px; color: var(--ink); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.nav-link:hover { color: var(--ink); background: rgba(42, 30, 59, 0.05); }
.nav-cta {
  margin-left: 8px; color: var(--cream); background: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 999px;
}
.nav-cta:hover { background: var(--ink-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 16px; font-weight: 600; padding: 15px 28px; border-radius: 999px;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(42, 30, 59, 0.25); }
.btn-outline:hover { border-color: var(--ink); background: rgba(42, 30, 59, 0.04); }
.btn-light { flex: 0 0 auto; background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; transform: translateY(-1px); }

/* ---------- Section basics ---------- */
.section { padding: clamp(56px, 7vw, 96px) 24px; }
.section-alt { background: var(--section); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 16px;
}
.eyebrow-accent { color: var(--accent); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }

h1, h2, h3 { color: var(--ink); font-weight: 700; }
h2 {
  margin: 0 0 18px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1;
  letter-spacing: -0.02em; text-wrap: balance;
}
.lead { margin: 0; font-size: clamp(17px, 1.4vw, 19px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 24px clamp(48px, 7vw, 96px); }
.hero .container, .about .container {
  display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero-text { flex: 1 1 380px; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rust); display: block; }
.hero-eyebrow .eyebrow { margin: 0; }
.hero h1 {
  margin: 0 0 24px; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.02em;
}
.hero-lead { margin: 0 0 36px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { flex: 1 1 360px; min-width: 0; }
.hero-panel {
  background: var(--ink); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px);
  display: flex; align-items: center; justify-content: center;
}
.hero-panel img {
  width: clamp(220px, 30vw, 320px); height: clamp(220px, 30vw, 320px);
  border-radius: 12px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); object-fit: contain;
}

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card {
  background: #FFFFFF; border: 1px solid rgba(42, 30, 59, 0.08); border-radius: var(--radius);
  padding: 36px 32px;
}
.card:hover { border-color: rgba(42, 30, 59, 0.18); transform: translateY(-3px); }
.card h3 { margin: 0 0 12px; font-size: 21px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; }

.icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(201, 133, 104, 0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.icon::before { content: ""; display: block; }
.icon-dot::before { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.icon-square::before { width: 16px; height: 16px; border: 3px solid var(--accent); border-radius: 4px; }
.icon-corner::before { width: 16px; height: 16px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); }

/* ---------- Method ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px 0; border-top: 2px solid rgba(42, 30, 59, 0.12); }
.step-num { font-size: 15px; font-weight: 700; color: var(--rust); margin-bottom: 18px; }
.step h3 { margin: 0 0 10px; font-size: 19px; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* ---------- Öruggara nám banner ---------- */
.promo-section { padding: clamp(8px, 2vw, 24px) 24px clamp(48px, 6vw, 80px); }
.promo {
  background: var(--ink); border-radius: var(--radius); padding: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); align-items: center; justify-content: space-between;
}
.promo-text { flex: 1 1 440px; min-width: 0; }
.promo h2 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 42px); color: var(--cream); }
.promo p { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; max-width: 560px; color: rgba(246, 242, 236, 0.8); }

/* ---------- About ---------- */
.about-photo { flex: 1 1 320px; min-width: 0; }
.about-photo img {
  width: 100%; height: clamp(340px, 34vw, 440px); border-radius: var(--radius); object-fit: cover; object-position: center 25%;
}
.about-text { flex: 1 1 400px; min-width: 0; }
.about h2 { margin-bottom: 22px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.about p { margin: 0 0 20px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.about p:last-of-type { margin-bottom: 32px; }
.quote {
  margin: 0; padding: 24px 28px; background: #FFFFFF; border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; color: var(--ink);
}

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 8vw, 112px) 24px; background: var(--ink); color: var(--cream); }
.contact .container {
  display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px); align-items: center; justify-content: space-between;
}
.contact-text { flex: 1 1 380px; min-width: 0; }
.contact h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; color: var(--cream); }
.contact-text p { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 520px; color: rgba(246, 242, 236, 0.8); }
.contact-links { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(246, 242, 236, 0.06); border: 1px solid rgba(246, 242, 236, 0.16);
  border-radius: var(--radius); padding: 20px 24px; text-decoration: none; color: var(--cream);
}
.contact-link:hover { background: rgba(246, 242, 236, 0.12); border-color: rgba(246, 242, 236, 0.4); }
.contact-label { display: block; font-size: 13px; color: rgba(246, 242, 236, 0.6); margin-bottom: 4px; }
.contact-value { font-size: 17px; font-weight: 600; }
.contact-arrow { font-size: 18px; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 36px 24px; background: var(--ink-deep); color: rgba(246, 242, 236, 0.55); }
.footer .container {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; font-size: 14px;
}
.footer-brand { font-weight: 700; letter-spacing: 0.1em; color: rgba(246, 242, 236, 0.85); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-privacy { flex: 1 1 100%; margin: 0; max-width: 760px; font-size: 13px; line-height: 1.6; }
.footer-privacy strong { font-weight: 600; color: rgba(246, 242, 236, 0.85); }
.footer-privacy a { color: rgba(246, 242, 236, 0.85); text-decoration: underline; text-underline-offset: 2px; }
.footer-privacy a:hover { color: var(--cream); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: 64px 24px; }
.notfound h1 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; }
.notfound p { margin: 0 0 32px; font-size: 18px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 16px; }
  .site-nav { gap: 4px; }
  .nav-link { padding: 6px 10px; font-size: 14px; }
  .nav-cta { margin-left: 0; padding: 8px 16px; font-size: 14px; }
  .hero, .section, .promo-section, .contact, .footer { padding-left: 16px; padding-right: 16px; }
  .hero h1 .nowrap { white-space: normal; }
  html { scroll-padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
