/* =============================================
   KISTUFELL — VÖRUSÍÐUR styles.css
   ============================================= */

:root {
  --yellow: #FCC60D;
  --bg: #e8e8e8;
  --surface: #f4f4f4;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: rgba(0,0,0,0.08);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --header-height: 68px;
  --gap: 20px;
  --radius: 12px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #343434;
  height: var(--header-height);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--gap);
  max-width: 1400px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--yellow); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* =============================================
   PAGE GRID — allt fylgir þessu
   Padding top = header + gap
   Allar sections: margin 0 gap gap
   ============================================= */
main {
  padding-top: calc(var(--header-height) + var(--gap));
}

/* Grunnbox — allar sections nota þetta */
.page-section {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 var(--gap) var(--gap);
  padding: 40px;
}

/* =============================================
   MODEL TABS
   ============================================= */
.model-tabs {
  display: flex;
  gap: 10px;
  margin: 0 var(--gap) var(--gap);
}
.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
  cursor: pointer;
}
.tab:hover { border-color: rgba(0,0,0,0.3); color: var(--text); }
.tab.active { background: var(--yellow); border-color: var(--yellow); color: #000; }

/* =============================================
   PRODUCT HERO
   ============================================= */
.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.brand-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}
.brand-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  display: block;
  margin-bottom: 16px;
}
.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.product-intro {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-intro strong { color: var(--text); font-weight: 600; }
.product-price {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-price strong { color: var(--text); font-weight: 600; font-size: 20px; }

/* Hero image */
.product-hero__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  display: block;
  background: var(--yellow);
  color: #000;
  text-align: center;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  border-radius: var(--radius);
  margin: var(--gap) var(--gap) var(--gap);
  transition: opacity var(--transition);
}
.cta-banner:hover { opacity: 0.85; }
.cta-banner strong { font-weight: 600; }

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--text);
}

/* =============================================
   VIDEO
   ============================================= */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* =============================================
   SPEC TABLE
   ============================================= */
.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--bg); }
.spec-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.spec-value {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-intro {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon { font-size: 20px; margin-top: 2px; }
.contact-link {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  display: block;
  transition: color var(--transition);
}
.contact-link:hover { text-decoration: underline; }
.contact-note { font-size: 14px; color: var(--text-muted); display: block; margin-top: 4px; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--outline {
  border: 1px solid rgba(0,0,0,0.2);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: #000; background: #000; color: #fff; }

/* =============================================
   BOTTOM IMAGE
   ============================================= */
.bottom-image {
  margin: 0 var(--gap) var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
}
.bottom-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* =============================================
   IMAGE PLACEHOLDERS
   ============================================= */
.image-placeholder {
  width: 100%;
  height: 420px;
  background: var(--bg);
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.2);
  font-size: 14px;
}
.image-placeholder--large {
  height: 400px;
  border-radius: var(--radius);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #343434;
  margin: 0 var(--gap) var(--gap);
  border-radius: var(--radius);
  padding: 40px 40px 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo img { width: 120px; height: auto; display: block; }
.footer-contact { display: flex; gap: 40px; }
.footer-contact strong {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}
.footer-contact p, .footer-contact a {
  font-size: 17px;
  color: #999;
  line-height: 1.75;
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-links a { font-size: 14px; color: #999; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.2); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #343434;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .product-hero__inner { grid-template-columns: 1fr; }
  .image-placeholder { height: 260px; }
  .bottom-image img { height: 260px; }
  .page-section { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { text-align: left; }
  .footer-contact { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  :root { --gap: 12px; }
  .header-inner { padding: 0 var(--gap); }
}
