/*
Theme Name: Axia IT
Theme URI: https://axiait.se
Author: Axia IT AB
Author URI: https://axiait.se
Description: Axia IT officiell webbplats
Version: 1.0.1
License: Proprietary
Text Domain: axiait
*/

/* ── CSS VARIABLER ── */
:root {
  --dark: #0e0f0d;
  --dark2: #161714;
  --dark3: #1e1f1c;
  --dark4: #2a2b28;
  --border-d: rgba(255,255,255,0.09);
  --border-d2: rgba(255,255,255,0.16);
  --text-d: #f0ede5;
  --text-d2: #b8b6ae;
  --text-d3: #7a7870;
  --accent: #1a4b8c;
  --accent-g: #7dd4f0;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;
  --r: 8px;
  --rl: 16px;
}

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

body {
  background: var(--dark2);
  color: var(--text-d);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

/* ── GRADIENT TEXT ── */
.grad-text {
  background: linear-gradient(120deg, #f0ede5 0%, #7dd4f0 28%, #f0ede5 50%, #d4b896 72%, #f0ede5 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── REVEAL ANIMATIONER ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

/* site-nav definieras tillsammans med mobilmenyn ovan */

.nav-inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-d2);
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}

/* Tunn blå linje under menyval vid hover */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-g);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links > li > a:hover::after,
.nav-links > li.current-menu-item > a::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--accent-g); }

/* ── DROPDOWN ── */
.nav-links li { position: relative; }

.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: rgba(14,15,13,0.97);
  border: 1px solid var(--border-d);
  border-radius: 4px;
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
  margin-top: 0;
  padding-top: 12px;
}

/* Stor osynlig brygga som täpper igen gapet */
.nav-links li::after {
  content: '';
  position: absolute;
  top: 60%;
  left: -10px;
  right: -10px;
  height: 40px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.nav-links li:hover > .sub-menu { display: block; }

.nav-links .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-d2);
  transition: color .2s, background .2s;
}

.nav-links .sub-menu a:hover {
  color: var(--accent-g);
  background: rgba(125,212,240,0.05);
}

/* Pil på menyval med undermeny */
.nav-links .menu-item-has-children > a {
  padding-right: 14px;
}
.nav-links .menu-item-has-children > a::before {
  content: '›';
  position: absolute;
  right: 0;
  font-size: 14px;
  opacity: 0.5;
  transform: rotate(90deg);
  display: inline-block;
}

/* ── KONTAKT-KNAPP ── */
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--accent-g);
  color: var(--accent-g);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .2s;
}
.nav-contact:hover {
  background: var(--accent-g);
  color: var(--dark);
}

/* ── HAMBURGARE (MOBIL) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-d);
  transition: all .3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid var(--border-d);
  padding: 24px 40px;
  list-style: none;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Fixa site-nav så den inte klipper mobilmenyn */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(14,15,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-d);
  height: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
}
.nav-mobile a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-d2);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-d);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--accent-g); }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-d);
  padding: 24px 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-size: 11px;
  color: #c0beb8;
  transition: color .2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-links a:hover { color: var(--accent-g); text-decoration: underline; }
.footer-copy { font-size: 12px; color: #c0beb8; letter-spacing: 0.05em; }

/* ── KNAPPAR ── */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--accent-g);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
  transition: all .2s;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-outline-gold:hover { background: var(--accent-g); color: var(--dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-d2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  border-radius: 2px;
  transition: all .2s;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-ghost:hover { border-color: var(--accent-g); color: var(--accent-g); }

/* ── SECTION EYEBROW ── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent-g);
  flex-shrink: 0;
}
.section-eyebrow span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-g);
}

/* ── WORDPRESS SPECIFIKT ── */
.admin-bar .site-nav { top: 32px; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-d3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links, .nav-contact { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 0 24px;
  }
}
