/* =========================================================
   TEXILine.com - komplett styles.css
   Inkluderer:
   - Forside
   - Produktkort
   - Kontakt
   - Lagerstatus
   - Statusmerker: På lager / På forespørsel
   ========================================================= */

:root {
  --navy-950: #06172a;
  --navy-900: #081f3a;
  --navy-800: #0d2d4d;
  --navy-700: #123d66;

  --blue-700: #145da0;
  --blue-600: #1b70b7;
  --blue-500: #2186d4;
  --cyan-500: #00a7c8;

  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-blue: #eaf4fb;

  --text: #102033;
  --muted: #66788a;
  --line: #d9e3ed;

  --green: #0e8f5c;
  --yellow: #b7791f;
  --red: #b42318;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 8px 24px rgba(8, 31, 58, 0.08);
  --shadow-md: 0 18px 45px rgba(8, 31, 58, 0.12);
}

/* -------------------------
   Base
------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only,
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

/* -------------------------
   Header / navigation
------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-size: 30px;
  color: var(--navy-900);
}

.logo-mark {
  color: var(--blue-600);
}

.logo-light {
  color: var(--navy-900);
}

.logo::before {
  content: "";
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 10px 26px rgba(27, 112, 183, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #27435f;
  font-weight: 750;
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-blue);
  color: var(--navy-900);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

/* -------------------------
   Buttons
------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue-600);
  box-shadow: 0 12px 28px rgba(27, 112, 183, 0.26);
}

.button.primary:hover {
  background: var(--blue-700);
}

.button.secondary {
  color: var(--navy-900);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--blue-500);
}

.button.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 14px;
}

/* -------------------------
   Front page hero
------------------------- */

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(0, 167, 200, 0.32), transparent 34%),
    radial-gradient(circle at bottom left, rgba(33, 134, 212, 0.22), transparent 36%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800) 58%, #0e7490);
  padding: 86px 0 74px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-500);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 900;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #8fe7ff;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d9ecff;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.hero-card::before {
  content: "";
  display: block;
  height: 8px;
  width: 84px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.hero-card p {
  color: #d9ecff;
  margin: 0 0 18px;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: #ffffff;
  font-weight: 700;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-500);
}

/* -------------------------
   Page hero
------------------------- */

.page-hero {
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--navy-950), var(--navy-800) 70%, var(--blue-700));
  padding: 70px 0 62px;
}

.page-hero p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 760px;
  color: #d9ecff;
  font-size: 19px;
}

/* -------------------------
   Sections
------------------------- */

.section {
  padding: 68px 0;
}

.section:nth-of-type(even) {
  background: var(--bg-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.search-wrap {
  width: min(440px, 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(33, 134, 212, 0.12);
}

/* -------------------------
   Product cards
------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f8fbfd 100%);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #b7cce0;
  box-shadow: var(--shadow-md);
}

.product-image {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px 22px 12px;
  background: #ffffff;
  border-bottom: none;
}

.product-image img {
  max-height: 150px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(0.96);
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 136px;
  border: 1px dashed #b7cce0;
  border-radius: var(--radius-md);
  color: var(--blue-600);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: #ffffff;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  padding: 18px 20px 20px;
  background: transparent;
}

.product-category {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-blue);
  color: var(--blue-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.product-content h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.product-content p {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  color: var(--text) !important;
  font-size: 14px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
}

.spec-list li {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e7eef6;
  color: #425a72;
  font-size: 12px;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 8px;
}

.no-datasheet {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* -------------------------
   Status / messages
------------------------- */

.status-message {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* -------------------------
   Lagerstatus table
------------------------- */

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.stock-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.stock-table th,
.stock-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.stock-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf5fb;
  color: #38536f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
}

.stock-table tbody tr:hover {
  background: #f8fbfd;
}

.stock-table tbody tr:last-child td {
  border-bottom: none;
}

/* Statusmerker på lagerstatus-siden */

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.2;
}

.stock-pill.status-in-stock {
  color: var(--green);
  background: rgba(14, 143, 92, 0.1);
  border: 1px solid rgba(14, 143, 92, 0.22);
}

.stock-pill.status-low-stock {
  color: var(--yellow);
  background: rgba(183, 121, 31, 0.1);
  border: 1px solid rgba(183, 121, 31, 0.22);
}

.stock-pill.status-out-stock {
  color: var(--red);
  background: rgba(180, 35, 24, 0.1);
  border: 1px solid rgba(180, 35, 24, 0.22);
}

/* Fallback dersom statusklasse settes direkte på td */

.status-in-stock {
  color: var(--green);
  font-weight: 900;
}

.status-low-stock {
  color: var(--yellow);
  font-weight: 900;
}

.status-out-stock {
  color: var(--red);
  font-weight: 900;
}

/* -------------------------
   Contact page
------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.contact-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.contact-card {
  padding: 28px;
}

.info-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbfe);
}

.contact-card h2,
.info-panel h2 {
  margin: 0 0 22px;
  color: var(--navy-900);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-900);
  font-weight: 850;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.info-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.info-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.info-block h3 {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-block p {
  margin: 0;
  color: var(--text);
}

.info-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.info-block a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}

/* -------------------------
   Footer
------------------------- */

.site-footer {
  background: var(--navy-950);
  color: #d9ecff;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover {
  color: #8fe7ff;
}

/* -------------------------
   Compatibility classes
   Brukes dersom noen eldre HTML-deler bruker .btn, .grid, .card osv.
------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: var(--blue-600);
}

.btn-secondary {
  color: var(--navy-900);
  background: #ffffff;
  border-color: var(--line);
}

.mini {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f8fbfd 100%);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-img {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px 22px 12px;
  background: #ffffff;
  border-bottom: none;
}

.card-img img {
  max-height: 150px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(0.96);
}

.card-body {
  padding: 18px 20px 20px;
  background: transparent;
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-blue);
  color: var(--blue-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e7eef6;
  color: #425a72;
  font-size: 12px;
  font-weight: 700;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    padding: 9px 12px;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .page-hero {
    padding: 54px 0 48px;
  }

  .product-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .btn {
    width: 100%;
  }

  .contact-card,
  .info-panel {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-table {
    min-width: 720px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 27px;
  }

  .logo::before {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .stock-pill {
    min-width: 116px;
    font-size: 12px;
  }
}.site-footer {
  margin-top: 80px;
  background: transparent;
}

.footer-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 210px;
  background: #ffffff;
  overflow: hidden;
}

.footer-left {
  padding: 34px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.amokabel-logo {
  display: inline-block;
  width: fit-content;
  margin-bottom: 22px;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2.5px;
  color: #006aa6;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-address {
  font-style: normal;
  color: #40506a;
  font-size: 16px;
  line-height: 1.6;
}

.footer-address strong {
  font-weight: 500;
  color: #40506a;
}

.footer-address a {
  color: #40506a;
  text-decoration: none;
}

.footer-address a:hover {
  color: #006aa6;
  text-decoration: underline;
}

.footer-right {
  position: relative;
  background: #000000;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-texiline-mark {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 102px;
  height: 23px;
  border: 5px solid #ffffff;
  box-sizing: border-box;
}

.footer-texiline-mark span:first-child {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 54px;
  height: 3px;
  background: #ffffff;
}

.footer-texiline-mark span:last-child {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 18px;
  height: 3px;
  background: #ffffff;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 11px;
  background: #ffc400;
  color: #000000;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 196, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.footer-contact-button:hover {
  background: #ffd43b;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 196, 0, 0.3);
}

@media (max-width: 820px) {
  .footer-contact-panel {
    grid-template-columns: 1fr;
  }

  .footer-left {
    padding: 32px 22px;
  }

  .amokabel-logo {
    font-size: 38px;
  }

  .footer-right {
    min-height: 170px;
  }

  .footer-texiline-mark {
    top: 22px;
    right: 22px;
  }
}

@media (max-width: 520px) {
  .site-footer {
    margin-top: 56px;
  }

  .footer-left {
    padding: 28px 18px;
  }

  .amokabel-logo {
    font-size: 34px;
  }

  .footer-address {
    font-size: 15px;
  }

  .footer-right {
    min-height: 155px;
    padding: 28px 18px;
  }

  .footer-contact-button {
    min-width: 145px;
    min-height: 52px;
    font-size: 16px;
  }
}