/*
Theme Name: GrandeData
Theme URI: https://grandedata.no
Author: GrandeData
Author URI: https://grandedata.no
Description: Profesjonelt one-page tema for GrandeData.no
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grandedata
Tags: one-page, dark, technology, services
*/

:root {
  --bg: #0f1117; --bg2: #161b26; --bg3: #1d2333; --bg4: #242c3d;
  --accent: #00d4f0; --text: #dde5f4; --text-muted: #8a96b0;
  --border: rgba(0,212,240,0.14); --border2: rgba(255,255,255,0.08);
  --font-head: 'Space Grotesk', sans-serif; --font-body: 'Nunito', sans-serif;
  --radius: 8px; --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.05rem; }
.section-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

#site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; transition: background var(--transition); background: rgba(15,17,23,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.07); }
#site-nav.scrolled { background: rgba(15,17,23,0.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; position: relative; top: -1px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; transition: color var(--transition); }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--accent) !important; color: #000 !important; padding: 0.55rem 1.3rem; border-radius: var(--radius); font-weight: 700; font-size: 0.85rem; transition: all var(--transition); }
.nav-cta:hover { background: #fff !important; transform: translateY(-1px); }

#hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; overflow: hidden; padding-top: 70px; }
#hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat; filter: brightness(0.18) saturate(0.5); z-index: 0; }
.hero-gradient { position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(0,40,80,0.4) 0%, rgba(0,10,20,0.3) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(0,212,240,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,240,0.04) 1px, transparent 1px); background-size: 55px 55px; mask-image: radial-gradient(ellipse 100% 100% at 0% 50%, black 40%, transparent 100%); }
.hero-glow-left { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,240,0.09) 0%, transparent 65%); top: 50%; left: 10%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.hero-glow-right { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,80,160,0.15) 0%, transparent 65%); top: 50%; right: 5%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.hero-left { padding: 4rem 3rem 4rem 5rem; position: relative; z-index: 2; }
.hero-right { display: flex; align-items: center; justify-content: center; padding: 4rem 4rem 4rem 2rem; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0,212,240,0.1); border: 1px solid rgba(0,212,240,0.25); border-radius: 100px; padding: 0.4rem 1.1rem; font-size: 0.76rem; color: var(--accent); font-weight: 700; margin-bottom: 2rem; letter-spacing: 0.06em; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.hero-title { margin-bottom: 1.4rem; color: #fff; }
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.85; max-width: 460px; margin-bottom: 2.5rem; }
.hero-mini-stats { display: flex; gap: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); }
.hero-mini-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-mini-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

.rack-wrap { width: 100%; max-width: 520px; }
.rack-frame { background: rgba(19,25,42,0.9); border: 1px solid rgba(0,212,240,0.15); border-radius: 16px; padding: 1.8rem; backdrop-filter: blur(10px); }
.rack-label { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,212,240,0.5); text-align: center; margin-bottom: 1.2rem; }
.server-unit { background: #1a2035; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 0.85rem 1.1rem; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.9rem; position: relative; overflow: hidden; }
.server-unit.active { border-color: rgba(0,212,240,0.3); background: #1a2540; }
.server-unit.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.server-unit.offline { border-color: rgba(255,82,82,0.2); opacity: 0.7; }
.leds { display: flex; gap: 5px; flex-shrink: 0; }
.led { width: 7px; height: 7px; border-radius: 50%; }
.led.green { background: #00e676; box-shadow: 0 0 5px rgba(0,230,118,0.6); }
.led.cyan { background: var(--accent); box-shadow: 0 0 5px rgba(0,212,240,0.7); animation: blink 2.5s ease-in-out infinite; }
.led.off { background: rgba(255,255,255,0.1); }
.led.red { background: #ff5252; box-shadow: 0 0 4px rgba(255,82,82,0.5); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.server-info { flex: 1; min-width: 0; }
.server-name { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-desc { font-size: 0.66rem; color: var(--text-muted); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-bar-wrap { flex: 1; min-width: 80px; }
.server-bar-label { font-size: 0.58rem; color: var(--text-muted); margin-bottom: 0.25rem; display: flex; justify-content: space-between; }
.server-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.server-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #0099bb); }
.server-bar-fill.high { background: linear-gradient(90deg, #ff7043, #ff5252); }
.server-badge { font-size: 0.58rem; font-weight: 700; padding: 0.18rem 0.45rem; border-radius: 4px; flex-shrink: 0; }
.server-badge.ok { background: rgba(0,212,240,0.1); color: var(--accent); border: 1px solid rgba(0,212,240,0.2); }
.server-badge.warn { background: rgba(255,82,82,0.1); color: #ff7070; border: 1px solid rgba(255,82,82,0.2); }
.network-section { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.network-label { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,212,240,0.4); margin-bottom: 0.9rem; }
.network-nodes { display: flex; justify-content: space-around; align-items: center; position: relative; }
.network-nodes::before { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; height: 1px; background: rgba(0,212,240,0.12); transform: translateY(-8px); }
.node { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; position: relative; z-index: 1; }
.node-dot { width: 30px; height: 30px; border-radius: 8px; background: #1a2035; border: 1px solid rgba(0,212,240,0.15); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.node-dot.active-node { background: #1a2540; border-color: rgba(0,212,240,0.35); box-shadow: 0 0 10px rgba(0,212,240,0.12); }
.node-label { font-size: 0.58rem; color: var(--text-muted); text-align: center; }

#tjenester { background: var(--bg2); }
.tjenester-intro { max-width: 560px; margin-bottom: 3.5rem; }
.tjenester-intro p { color: var(--text-muted); font-size: 1rem; margin-top: 0.8rem; line-height: 1.8; }
.tjenester-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tjeneste-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 1.8rem; position: relative; overflow: hidden; transition: all var(--transition); }
.tjeneste-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity var(--transition); }
.tjeneste-card:hover { border-color: rgba(0,212,240,0.25); transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0,0,0,0.35); background: var(--bg4); }
.tjeneste-card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; background: rgba(0,212,240,0.09); border: 1px solid rgba(0,212,240,0.18); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; }
.tjeneste-card h3 { margin-bottom: 0.6rem; color: #fff; word-break: normal; overflow-wrap: break-word; }
.tjeneste-card p { color: var(--text-muted); font-size: 0.84rem; line-height: 1.8; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: rgba(0,212,240,0.08); border: 1px solid rgba(0,212,240,0.16); border-radius: 4px; padding: 0.18rem 0.5rem; }

#om { background: var(--bg); }
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.om-content p { color: var(--text-muted); font-size: 1rem; margin-top: 1rem; line-height: 1.9; }
.fordeler-liste { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.fordeler-liste li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--text); }
.fordeler-liste li::before { content: '✓'; color: var(--accent); font-weight: 800; font-size: 0.75rem; background: rgba(0,212,240,0.1); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; padding: 1.8rem; text-align: center; }
.stat-number { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

#kontakt { background: var(--bg2); }
.kontakt-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.kontakt-info p { color: var(--text-muted); font-size: 1rem; margin-top: 1rem; line-height: 1.85; }
.kontakt-detaljer { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.kontakt-detaljer li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--text-muted); }
.kontakt-detaljer .icon { color: var(--accent); width: 20px; text-align: center; }
.kontakt-form { background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.45rem; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 0.8rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; appearance: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,240,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-notice { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.9rem; text-align: center; min-height: 1.2em; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #000; font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; padding: 0.9rem 2rem; border-radius: var(--radius); transition: all var(--transition); border: none; cursor: pointer; }
.btn-primary:hover { background: #fff; color: #000; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,240,0.3); }

#site-footer { background: #0b0d13; border-top: 1px solid var(--border2); padding: 2.2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) { .tjenester-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 5rem 2rem 2rem; }
  .hero-right { display: none; }
  .om-grid, .kontakt-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { gap: 1.2rem; }
}
@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .tjenester-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .nav-links { display: none; }
  .hero-mini-stats { gap: 1.2rem; }
}

/* =========================================================
   REFERANSER
   ========================================================= */
#referanser {
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}

.referanser-intro {
  text-align: center;
  margin-bottom: 3rem;
}

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

.ref-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}

.ref-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.ref-quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  font-family: Georgia, serif;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}

.ref-sitat {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
  font-style: italic;
}

.ref-person {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border2);
}

.ref-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ref-navn {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.ref-rolle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Skjul referanser-lenke i nav hvis seksjonen ikke vises */
#referanser:not(:empty) ~ * #nav-ref-link,
body:not(:has(#referanser)) #nav-ref-link {
  display: none;
}
