/* ========================================
   SVÆÐISTJÓRN 16 — LANDSBJÖRG STÍLL
   Byggir á raunverulegum stíl landsbjorg.is
   ======================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F5F0EB; /* Ljós beige/cream — eins og landsbjorg.is */
  color: #2D2D2D;
  line-height: 1.6;
}

/* HEADER — dökkur toppur */
.site-header {
  background: #1A1A1A;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 52px;
  height: 52px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background: #E42046;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-phone:hover {
  background: #B71C1C;
}

.nav-menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

@media (max-width: 600px) {
  .nav-menu-btn { display: block; }
}

/* MOBILE MENU */
.mobile-menu {
  background: #1A1A1A;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-bottom: 1px solid #333;
  font-size: 0.95rem;
}

.mobile-menu a:hover {
  background: #333;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, #E42046 0%, #8B0000 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='20'/%3E%3C/svg%3E") no-repeat center;
  background-size: 400px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  font-weight: 400;
}

/* STATS SECTION — Rauðar stórar tölur eins og landsbjorg.is */
.stats-section {
  background: #fff;
  padding: 48px 24px;
  text-align: center;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #E42046; /* Rautt — eins og á landsbjorg.is */
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: #555;
  font-weight: 400;
}

/* SECTION TITLE — Rauð fyrirsögn */
.section-title {
  color: #E42046;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #E42046;
  display: inline-block;
}

/* LINKS SECTIONS */
.links-section {
  padding: 48px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.links-section.alt-bg {
  background: #fff;
  max-width: 100%;
  padding-left: calc((100% - 1000px) / 2 + 24px);
  padding-right: calc((100% - 1000px) / 2 + 24px);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* LINK CARD */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #E8E0D8;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.link-card:hover {
  border-color: #E42046;
  box-shadow: 0 4px 16px rgba(212, 33, 39, 0.12);
  transform: translateY(-2px);
}

.alt-bg .link-card {
  background: #FAFAF7;
}

.card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF3F3;
  border-radius: 10px;
}

.card-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 2px;
}

.card-text p {
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
}

.card-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: #E42046;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.link-card:hover .card-arrow {
  opacity: 1;
}

/* HIGHLIGHT CARD — Reikniskjal */
.highlight-card {
  border: 2px solid #E42046;
  background: linear-gradient(135deg, #FFF5F5, #fff);
}

.highlight-card .card-icon {
  background: #E42046;
  filter: none;
}

/* EMERGENCY CARD */
.emergency-card {
  background: #E42046;
  border-color: #E42046;
}

.emergency-card .card-text h3,
.emergency-card .card-text p {
  color: #fff;
}

.emergency-card .card-icon {
  background: rgba(255,255,255,0.2);
}

.emergency-card .card-arrow {
  color: #fff;
}

.emergency-card:hover {
  background: #B71C1C;
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  background: #1A1A1A;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-svg {
  width: 40px;
  height: 40px;
}

.footer-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-text {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .links-section.alt-bg {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .link-card {
    padding: 16px;
  }
  
  .card-arrow {
    opacity: 1;
  }
}
