/* =========================================================
   Supportnet – main.css
   Struktur: Tokens → Helpers → Header/Nav/Brand → Hero →
             Sections (Why, Grid/Cards, Panel, Aina) → Footer → Responsive
   ========================================================= */

/* =========================
   1) DESIGNTOKENS / VARS
   ========================= */
:root{
  /* Färger */
  --bg:#0b0e12; 
  --panel:#10151c; 
  --card:#121923;
  --text:#e6ecf4; 
  --muted:#aab6c5;
  --primary:#5cc8ff; 
  --accent:#8de36b;
  --border:#223042;

  /* UI */
  --radius:14px; 
  --shadow:0 8px 24px rgba(0,0,0,.35);
  --maxw:1040px;

  /* Brand-storlek (öka/minska här) */
  --brand-font:1.6rem;  /* var ~1rem */
  --logo-h:64px;        /* var 32px */
}

/* =========================
   2) RESET / BAS
   ========================= */
*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

hr {
  width: 60%;
  margin: 2rem auto;
  border: none;
  border-top: 1px solid #ffffff64; /* tunn, diskret linje */
}

/* =========================
   3) LAYOUT HELPERS
   ========================= */
.container{ max-width:var(--maxw); margin:0 auto; padding:24px; }
.row{ display:flex; gap:16px; }
.wrap{ flex-wrap:wrap; }
.center{ align-items:center; }
.between{ justify-content:space-between; }

/* =========================
   4) HEADER & NAV
   ========================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg,#0d131a,#0b0e12);
  border-bottom:1px solid var(--border);
}
.site-header .container{ padding-top:10px; padding-bottom:10px; }

.nav a{ margin-left:18px; color:var(--muted); }
.nav a:hover{ color:var(--text); }

/* =========================
   5) BRAND / LOGOTYP
   ========================= */
.brand{
  display:flex; gap:14px; align-items:center;
  font-weight:800; letter-spacing:.4px;
}
.brand span{ font-size:var(--brand-font); }

/* Transparent logo på mörk bakgrund – variant 1: badge */
.logo-badge{
  height:var(--logo-h); width:auto;
  padding:6px; border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}

/* Transparent/mörk logga – variant 2: invert (ta bort badge) */
.logo-invert{
  height:var(--logo-h); width:auto;
  filter:invert(1) hue-rotate(180deg) contrast(1.05);
}

/* =========================
   6) HERO (toppsektion)
   ========================= */
.hero{
  padding:56px 24px 32px;
  text-align:center;
  background:
    radial-gradient(1200px 420px at 50% -80%, rgba(92,200,255,.18), transparent 60%),
    linear-gradient(180deg,#0c1219,#0b0e12 40%);
  border-bottom:1px solid var(--border);
}
.hero h1{ font-size:clamp(28px,4.2vw,42px); margin:0 0 10px; }
.lead{ color:var(--muted); max-width:760px; margin:0 auto 18px; }

/* Valfri våg-bild bakom hero (lägg wave-background.png i /assets/img/) */
.hero.wave{
  background:
    url("/assets/img/wave-background.png") center/cover no-repeat,
    radial-gradient(1200px 420px at 50% -80%, rgba(92,200,255,.18), transparent 60%),
    linear-gradient(180deg,#0c1219,#0b0e12 40%);
}

/* =========================
   7) KNAPPAR
   ========================= */
.btn{
  display:inline-block; padding:10px 16px;
  border-radius:12px; border:1px solid var(--border);
  background:#0f141b; color:var(--text);
  box-shadow:var(--shadow); cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn.primary{
  background:linear-gradient(180deg,#62caff,#40b3ff);
  color:#04121b; border-color:#2094df;
}
.btn.outline{ background:transparent; }
.cta-row{ display:flex; gap:12px; justify-content:center; margin-top:10px; }

/* =========================
   8) SEKTION: VARFÖR AI
   ========================= */
.why-ai{ padding:28px 24px; max-width:860px; margin:0 auto; color:var(--muted); }

/* =========================
   9) GRID / CARDS (BRANSCH-TEASERS)
   ========================= */
.grid{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  padding:24px; max-width:var(--maxw); margin:0 auto;
}

/* [09b] Grid override: ledningsroller 2x2 */
.grid.grid-leadership{
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}
@media (max-width:700px){
  .grid.grid-leadership{ grid-template-columns: 1fr; }
}

/* [09c] Grid 2x3 – tvinga 2 kolumner */
.grid.grid-2x3{ grid-template-columns: repeat(2, minmax(280px, 1fr)) !important; }

@media (max-width:700px){
  .grid.grid-2x3{ grid-template-columns: 1fr; }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow);
}
.card h3{ margin:0 0 6px; }
.link{
  background:none; border:none; color:var(--primary);
  padding:0; cursor:pointer; font-weight:600;
}

/* =========================
   10) CIO-PANEL
   ========================= */
.panel{
  max-width:920px; margin:18px auto 48px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow);
}
.ticks{ margin:6px 0 14px; padding-left:18px; }
.ticks li{ margin:6px 0; }

/* =========================
   11) AINA-SEKTION
   ========================= */
.muted{ color:var(--muted); }
.aina .aina-wrap{ display:flex; gap:18px; align-items:center; }
.aina-photo{
  width:120px; height:auto; border-radius:14px;
  border:1px solid var(--border); box-shadow:var(--shadow);
  background:radial-gradient(120px 80px at 50% 20%, rgba(255,255,255,.06), transparent);
}

/* =========================
   12) FOOTER
   ========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0b0e12;
  padding: 24px 0;
  color: var(--muted);
}

/* Social media block */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social h4 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
}

.footer-social a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Ikonlistan lodrätt */
.socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.socials a i {
  font-size: 22px;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

/* Extra skydd om något globalt skriver över fonten */
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

.socials a:hover {
  opacity: 0.85;
  color: var(--accent);
}

/* Rubrikfärg i footer = guld */
.site-footer h3,
.site-footer h4 { color: var(--accent) !important; }

/* Ikoner: lodrätt, centrerade, guld */
.socials{
  display:flex; flex-direction:column; gap:12px;
  align-items:center;
}
.socials a{
  display:inline-flex; width:32px; height:32px;
  align-items:center; justify-content:center;
  color:var(--accent); text-decoration:none;
}
.socials i{ font-size:24px; line-height:1; }
.socials a:hover{ opacity:.85; }

/* Footer: rubriker i guld och social-ikoner */
.site-footer h2,
.site-footer h3,
.site-footer h4 { color: #d4af37 !important; } /* guld, oavsett tema */

.socials{
  display:flex; flex-direction:column; gap:12px; align-items:center;
}
.socials a{
  display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center;
  color:#d4af37; text-decoration:none;   /* guld */
}
.socials a:hover{ opacity:.85; }
.socials svg{ width:24px; height:24px; display:block; fill:currentColor; }


/* =========================
   13) RESPONSIVE
   ========================= */
@media (max-width:900px){
  :root{ --brand-font:1.4rem; --logo-h:56px; }
}
@media (max-width:640px){
  .nav a{ margin-left:12px; }
  .container{ padding:18px; }
  .hero{ padding:40px 18px 24px; }
  .aina .aina-wrap{ flex-direction:column; text-align:center; }
  :root{ --brand-font:1.25rem; --logo-h:48px; }
}

/* ===== Hamburger / mobilnav ===== */
.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:42px; height:42px; border:1px solid var(--border);
  border-radius:10px; background:#0f141b; cursor:pointer;
}
.nav-toggle .bar{ display:block; width:20px; height:2px; background:var(--text); margin:3px 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity:.0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 840px){
  .nav-toggle{ display:flex; }
  .nav{
    position: absolute; right: 24px; left: 24px; top: 64px;
    background: var(--panel); border:1px solid var(--border); border-radius:12px;
    display:block; padding:10px; overflow:hidden;
    max-height:0; opacity:0; transform: translateY(-6px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }
  .nav a{ display:block; margin:6px 0; color:var(--text); }
  .nav.open{ max-height: 320px; opacity:1; transform: translateY(0); }
  /* Se till att headerns container inte klipper menyn */
  .site-header{ position: sticky; }
}
/* Reducerad rörelse */
@media (prefers-reduced-motion: reduce){
  .nav{ transition: none; }
}

/* =========================
   Mobilnav: position & lager (override)
   ========================= */

/* Header-containern måste vara ankare för absolut positionerad meny */
.site-header .container{
  position: relative;
  overflow: visible;            /* se till att menyn inte klipps */
  z-index: 100;                 /* header över innehållet */
}

/* Själva menypanelen i mobilläge */
@media (max-width: 840px){
  .nav{
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;                  /* justera om din header blir högre */
    z-index: 2000;              /* meny över header/hero */
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);

    /* kollaps/expand animation */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }
  .nav.open{
    max-height: 320px;          /* räcker för 6–7 länkar */
    opacity: 1;
    transform: translateY(0);
  }

  /* Länkar i panelen */
  .nav a{
    display: block;
    margin: 6px 0;
    color: var(--text);
    padding: 8px 6px;
    border-radius: 8px;
  }
  .nav a:hover{ background: rgba(255,255,255,.04); }

  /* Hamburgerknappen över allt */
  .nav-toggle{ z-index: 2100; }
}

/* Tillgänglighet: focus-synlighet */
.nav a:focus{
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reducerad rörelse */
@media (prefers-reduced-motion: reduce){
  .nav{ transition: none; }
}

/* =========================
   Footer-stil (guldtema)
   ========================= */
.site-footer{
  background: #1a1a1a;        /* mörkgrå bakgrund */
  color: #d4af37;             /* guld för all brödtext */
  padding: 40px 20px 20px;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* Container och sektioner */
.footer-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section{
  flex: 1 1 250px;
  margin: 10px;
}

/* Rubriker i foten */
.footer-section h4{
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #f5d76e;             /* ljusare guld */
}

/* Länkar */
.footer-section ul{
  list-style: none;
  padding: 0;
}
.footer-section ul li{
  margin: 6px 0;
}
.footer-section a{
  color: #d4af37;             /* guld */
  text-decoration: none;
}
.footer-section a:hover{
  text-decoration: underline;
  color: #f5d76e;             /* ljusare guld vid hover */
}

/* Sociala ikoner (Material Icons) */
.social-icons .material-icons-outlined{
  font-size: 26px;
  color: #d4af37;             /* guld */
  vertical-align: middle;
  margin-left: 6px;
  transition: color .2s ease;
}
.social-icons a:hover .material-icons-outlined{
  color: #f5d76e;             /* ljusare guld vid hover */
}

/* Bottenrad */
.footer-bottom{
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  color: #d4af37;             /* guld även här */
}

@media (max-width: 768px){
  .footer-section.right{
    text-align: left;
  }
}

/* Yatzy-knapp i mittensektion */
.yatzy-container{
  margin-top: 14px;
}
#play-yatzy{
  padding: 8px 16px;
  background: var(--primary);
  color: #04121b;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
#play-yatzy:hover{
  background: #4bb6e6;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: #1e1e1e;
  color: #f0f0f0;
}

.contact-form label {
  font-weight: bold;
}

.contact-form button.btn-primary {
  background-color: #c49b38;
  color: #000;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.contact-form button.btn-primary:hover {
  background-color: #d1a845;
}

.popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2c7;
  color: #04121b;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  font-weight: bold;
  z-index: 999;
  animation: fadeOut 4s ease forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* [03] Header/Nav – desktop horisontell */
@media (min-width: 841px){
  .nav{ display:flex; align-items:center; }
}

/* [05] Cookie Banner (bottom fixed) */
.sn-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #fff8e1; /* ljus bakgrund */
  border-top: 1px solid #f0c36d;
  box-shadow: 0 -2px 6px rgba(0,0,0,.06);
  padding: 12px;
  color: #000;
  
  display: flex;
  flex-direction: column;        /* lägg text ovanför knappen */
  justify-content: center;       /* centrera vertikalt inom bannern */
  align-items: center;           /* centrera horisontellt */
  gap: 8px;                      /* mellanrum mellan text och knapp */
}

.sn-cookie-banner .sn-text {
  text-align: center;           
  max-width: 600px;              
}

.sn-cookie-banner .sn-btn {
  background-color: #4CAF50;    /* grön accent */
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.sn-cookie-banner .sn-btn:hover {
  background-color: #45a049;    /* mörkare grön vid hover */
}

.cookieinfo-card {
    background-color: #2c2f38; /* Mörkare accent */
    color: #fff; /* All text blir vit */
    padding: 1.5em;
    border-radius: 8px;
}

.cookieinfo-card h2 {
    color: #fff; /* Rubrikerna också vita */
}

.cookieinfo-card a {
    color: #ffcc33; /* Behåller gul färg för länkar */
}
.cookieinfo-card a:hover {
    text-decoration: underline;
}

@media (max-width:600px){.sn-cookie-banner .sn-text{font-size:13px}}

