/* ============================================================
   Kjarnás – SG Gluggar og Hurðir
   Main Stylesheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg:           #F9F6F0;
  --dark:         #2C1E16;
  --wood:         #D7BCA7;
  --wood-dark:    #523829;
  --wood-muted:   rgba(215, 188, 167, 0.15);
  --white:        #FFFFFF;
  --text-muted:   rgba(44, 30, 22, 0.75);
  --border:       rgba(44, 30, 22, 0.10);
  --shadow-hard:  4px 4px 0px var(--dark);
  --radius-pill:  200px 0 0 200px;
  --transition:   0.25s ease;
  --max-w:        1400px;
  --pad-x:        8%;
  --svart:		  #000000;	
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; }

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-pad { padding: 90px var(--pad-x); }

.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 55px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--wood);
  margin: 14px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 16px 34px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-size: 15px;
}
.btn-primary {
  background: var(--wood);
  color: var(--dark);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--dark);
}
.btn-dark {
  background: var(--wood);
  color: var(--dark);
  box-shadow: 4px 4px 0px var(--svart);
}
.btn-dark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--svart);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--bg);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(44,30,22,0.10); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-dot {
  color: var(--wood-dark);
  font-size: 14px;
  margin: 0 5px;
  line-height: 1;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 18px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--wood-dark); }
.nav-links li a.nav-cta {
  border: 1.5px solid var(--dark);
  padding: 9px 20px;
  margin-left: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links li a.nav-cta:hover {
  background: var(--dark);
  color: var(--bg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--wood-dark); }
.mobile-nav .mobile-cta {
  margin-top: 10px;
  border: 2px solid var(--dark);
  padding: 14px 32px;
  font-size: 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-text { padding-right: 20px; }

.tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--wood);
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tagline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--wood);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero image side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-arc-line {
  position: absolute;
  inset: -5%;
  border: 1px dashed var(--wood);
  border-radius: 150px 0 0 150px;
  pointer-events: none;
  z-index: 1;
}
.hero-img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 2;
  box-shadow: 20px 20px 60px rgba(44,30,22,0.18);
}
.hero-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--wood);
  border-radius: 50%;
  z-index: 3;
}
.hero-dot-1 { top: -2%; left: 50%; }
.hero-dot-2 { bottom: 50%; left: -2%; }

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 27px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  background: var(--wood-muted);
  padding: 60px var(--pad-x);
}
.quote-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-size: 80px;
  line-height: 0.6;
  color: var(--wood);
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}
.quote-text {
  font-size: clamp(17px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--dark);
  border-left: 4px solid var(--wood);
  padding: 28px 36px;
  background: var(--white);
  text-align: left;
}

/* ============================================================
   FEATURES / KOSTIR
   ============================================================ */
.features-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px var(--pad-x);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 38px 30px;
  border: 1px solid var(--border);
  box-shadow: 5px 5px 0px rgba(44,30,22,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0px rgba(44,30,22,0.10);
}
.feature-icon {
  font-size: 34px;
  margin-bottom: 18px;
  display: block;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  color: var(--dark);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-section {
  background: var(--wood-muted);
  padding: 90px var(--pad-x);
}
.comparison-inner {
  max-width: 960px;
  margin: 0 auto;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 8px 8px 0px var(--dark);
  margin-top: 10px;
}
.comp-table thead th {
  background: var(--dark);
  color: var(--bg);
  padding: 18px 24px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.comp-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(215,188,167,0.08); }
.comp-table td {
  padding: 16px 24px;
  font-size: 14.5px;
  font-weight: 500;
  vertical-align: middle;
}
.comp-table td:first-child { font-weight: 700; color: var(--dark); }
.check { color: #4a9a4a; font-weight: 800; font-size: 17px; }
.cross { color: #c05050; font-weight: 800; font-size: 17px; }

/* Responsive table wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   USAGE / APPLICATIONS
   ============================================================ */
.usage-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.usage-left h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 28px;
}
.usage-list { list-style: none; }
.usage-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 15.5px;
  border-bottom: 1px solid var(--border);
}
.usage-list li:last-child { border-bottom: none; }
.usage-list li::before {
  content: "✓";
  color: var(--wood);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.accoya-box {
  background: var(--dark);
  color: var(--bg);
  padding: 48px 42px;
  box-shadow: 10px 10px 0px var(--wood);
}
.accoya-box h3 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wood);
  margin-bottom: 18px;
}
.accoya-box .sub {
  font-size: 14px;
  color: rgba(249,246,240,0.7);
  margin-bottom: 20px;
}
.accoya-list { list-style: none; margin-bottom: 28px; }
.accoya-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(249,246,240,0.08);
}
.accoya-list li:last-child { border-bottom: none; }
.accoya-list li::before {
  content: "➔";
  color: var(--wood);
  flex-shrink: 0;
  margin-top: 1px;
}
.accoya-box .highlight {
  font-weight: 700;
  color: var(--wood);
  font-size: 15px;
}

/* ============================================================
   GALLERY STRIP
   ============================================================ */
.gallery-section {
  padding: 0 0 90px;
  overflow: hidden;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,30,22,0.75));
  color: var(--bg);
  padding: 28px 18px 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ============================================================
   PROCESS / HOW IT WORKS
   ============================================================ */
.process-section {
  background: var(--dark);
  color: var(--bg);
  padding: 90px var(--pad-x);
}
.process-section .section-title { color: var(--bg); }
.process-section .section-title::after { background: var(--wood); }

.process-steps {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  counter-reset: step;
}
.process-step { position: relative; }
.step-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--wood);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  color: var(--wood);
}
.process-step p {
  font-size: 14.5px;
  color: rgba(249,246,240,0.7);
  line-height: 1.65;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.contact-details li:last-child { border-bottom: none; }
.contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.contact-details strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 2px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--wood-dark);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12px; color: var(--text-muted); }
.form-success {
  display: none;
  background: #e8f5e8;
  border: 1px solid #4a9a4a;
  color: #2d6a2d;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark);
  color: var(--bg);
  border-top: 4px solid var(--wood);
  padding: 70px var(--pad-x) 30px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(249,246,240,0.10);
}
.footer-brand .logo {
  color: var(--bg);
  margin-bottom: 18px;
  font-size: 20px;
}
.footer-brand .logo-dot { color: var(--wood); }
.footer-brand p {
  font-size: 14px;
  color: rgba(249,246,240,0.65);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--wood);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(249,246,240,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--wood); }
.footer-col p {
  font-size: 14px;
  color: rgba(249,246,240,0.65);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-col a.footer-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wood);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(249,246,240,0.40);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 5%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --pad-x: 6%; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
    min-height: auto;
    gap: 50px;
  }
  .hero-text { padding-right: 0; text-align: center; }
  .tagline { justify-content: center; }
  .tagline::before { display: none; }
  .hero-desc { margin: 0 auto 38px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-img { height: 380px; border-radius: 100px 0 0 100px; }
  .hero-arc-line { border-radius: 100px 0 0 100px; }

  /* Usage */
  .usage-section { grid-template-columns: 1fr; gap: 40px; }

  /* Contact */
  .contact-section { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Process */
  .process-steps { grid-template-columns: 1fr 1fr; }

  /* Comparison */
  .comp-table td, .comp-table th { padding: 13px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-img { height: 300px; }
  .section-pad { padding: 60px var(--pad-x); }
}
