/* ============================================================
   ELKOMPANIET I SUNDSVALL AB
   Palett: Antracit #12161C | Marin #1B2430 | Elgul #F5B301 | Varm vit #F7F5F0 | Stål #8A93A0
   Rubrik: Space Grotesk | Brödtext: Inter
   ============================================================ */

:root{
  --ink:#12161C;
  --ink-2:#1B2430;
  --ink-3:#232E3D;
  --gold:#F5B301;
  --gold-soft:#FFD255;
  --white:#F7F5F0;
  --steel:#8A93A0;
  --border:rgba(247,245,240,0.1);
  --border-strong:rgba(247,245,240,0.18);

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;

  --ease:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body);
  overflow-x:hidden;
  line-height:1.6;
}

::selection{ background:var(--gold); color:var(--ink); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea,select{ font-family:inherit; }
svg{ display:block; flex-shrink:0; }
img{ max-width:100%; display:block; }

/* ============ PROGRESS BAR ============ */
.progress-bar{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index:1001; transition:width .05s linear;
}

/* ============ REVEAL ============ */
.reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ============ HEADER ============ */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(18,22,28,0.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  transition:padding .3s var(--ease);
}
.header-inner{
  max-width:1360px; margin:0 auto; padding:16px 5vw;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand-logo{ height:44px; width:auto; }

.main-nav{ display:flex; gap:32px; }
.main-nav a{
  color:var(--white); font-size:0.95rem; font-weight:500; position:relative; padding:4px 0;
  transition:color .3s;
}
.main-nav a::after{
  content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--gold);
  transition:width .3s var(--ease);
}
.main-nav a:hover{ color:var(--gold-soft); }
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:22px; }
.header-phone{
  display:flex; align-items:center; gap:8px; color:var(--white); font-weight:600; font-size:0.95rem;
  transition:color .3s;
}
.header-phone:hover{ color:var(--gold-soft); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:8px; font-weight:600; font-size:0.92rem;
  transition:transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn-primary{ background:var(--gold); color:var(--ink); }
.btn-primary:hover{ background:var(--gold-soft); transform:translateY(-2px); box-shadow:0 8px 24px rgba(245,179,1,0.3); }
.btn-ghost{ border:1px solid var(--border-strong); color:var(--white); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold-soft); }
.btn-large{ padding:16px 32px; font-size:1rem; }
.btn-block{ width:100%; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav-toggle span{ height:2px; background:var(--white); border-radius:2px; }

@media (max-width:960px){
  .main-nav, .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-primary{ padding:10px 18px; font-size:0.85rem; }
}
@media (max-width:640px){
  .header-actions .btn-primary{ display:none; }
  .brand-logo{ height:36px; }
}

/* ============ HERO ============ */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  overflow:hidden; padding:140px 5vw 80px; isolation:isolate;
}
.hero-bg{ position:absolute; inset:0; z-index:-2; }
.hero-bg-img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(115deg, rgba(18,22,28,0.96) 30%, rgba(18,22,28,0.75) 65%, rgba(18,22,28,0.55) 100%);
}

.circuit-svg{ position:absolute; inset:0; z-index:-1; width:100%; height:100%; opacity:0.5; }
.circuit-line{
  fill:none; stroke:var(--gold); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:2600; stroke-dashoffset:2600;
  animation:drawCircuit 3.2s var(--ease) 0.3s forwards;
}
@keyframes drawCircuit{ to{ stroke-dashoffset:0; } }
.circuit-node{
  fill:var(--gold); opacity:0; transform-origin:center;
  animation:nodePulse 2.4s ease-in-out infinite;
}
.circuit-node:nth-of-type(2){ animation-delay:1.8s; }
.circuit-node:nth-of-type(3){ animation-delay:2.1s; }
.circuit-node:nth-of-type(4){ animation-delay:2.4s; }
.circuit-node:nth-of-type(5){ animation-delay:2.7s; }
.circuit-node:nth-of-type(6){ animation-delay:3s; }
@keyframes nodePulse{
  0%{ opacity:0; r:3; }
  15%{ opacity:1; r:7; }
  40%{ opacity:0.7; r:4; }
  100%{ opacity:0.7; r:4; }
}

.hero-content{ position:relative; z-index:1; max-width:640px; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px; color:var(--gold-soft);
  font-weight:600; font-size:0.85rem; letter-spacing:0.04em; margin-bottom:24px;
  border:1px solid rgba(245,179,1,0.35); padding:8px 16px; border-radius:100px;
  background:rgba(245,179,1,0.08);
}
.pulse-dot{
  width:8px; height:8px; border-radius:50%; background:var(--gold);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(245,179,1,0.5);} 50%{ box-shadow:0 0 0 7px rgba(245,179,1,0);} }

.hero-title{
  font-family:var(--font-display); font-weight:700; color:var(--white);
  font-size:clamp(2.4rem, 5.5vw, 4.2rem); line-height:1.08; letter-spacing:-0.01em;
  margin-bottom:24px;
}
.accent{ color:var(--gold); }

.hero-sub{
  color:rgba(247,245,240,0.82); font-size:clamp(1rem,1.3vw,1.15rem); max-width:520px; margin-bottom:36px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-scroll-cue{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:1;
  width:26px; height:42px; border:2px solid rgba(247,245,240,0.4); border-radius:20px;
}
.hero-scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:var(--gold);
  animation:scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue{ 0%{ opacity:1; top:8px; } 100%{ opacity:0; top:22px; } }

@media (max-width:640px){ .hero{ padding-top:120px; } }

/* ============ TRUST BAR ============ */
.trust-bar{ background:var(--ink); padding:44px 5vw; }
.trust-inner{
  max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:24px;
}
.trust-stat{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; min-width:130px; }
.trust-num{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2rem,3.5vw,2.8rem); color:var(--gold);
  line-height:1;
}
.trust-suffix{
  font-family:var(--font-display); font-weight:700; font-size:1.6rem; color:var(--gold); margin-left:2px;
}
.trust-label{ color:var(--steel); font-size:0.85rem; text-align:center; }
.trust-divider{ width:1px; height:44px; background:var(--border-strong); }
@media (max-width:760px){ .trust-divider{ display:none; } }

/* ============ SECTION HEAD (shared) ============ */
.section-head{ max-width:1200px; margin:0 auto 56px; padding:0 5vw; text-align:center; }
.section-eyebrow{
  display:inline-block; color:#C97F00; font-weight:700; font-size:0.85rem; letter-spacing:0.06em;
  text-transform:uppercase; margin-bottom:14px;
}
.section-eyebrow.light{ color:var(--gold); }
.section-title{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2rem,4vw,3rem);
  letter-spacing:-0.01em; line-height:1.15;
}

/* ============ OM OSS ============ */
.about{ padding:110px 5vw; max-width:1360px; margin:0 auto; }
.about-inner{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.section-eyebrow{ display:block; }
.about-text .section-title{ margin-top:6px; margin-bottom:20px; text-align:left; }
.about-lead{ font-size:1.15rem; font-weight:500; margin-bottom:16px; }
.about-text p{ color:#4a4f57; margin-bottom:16px; }

.about-hours{
  display:flex; align-items:center; gap:14px; margin-top:28px; padding:18px 22px;
  background:var(--ink); border-radius:12px; color:var(--white);
}
.about-hours svg{ color:var(--gold); }
.about-hours strong{ display:block; font-size:0.95rem; }
.about-hours span{ color:var(--steel); font-size:0.88rem; }

.about-media{ position:relative; }
.about-img-main{ border-radius:16px; aspect-ratio:4/3.2; object-fit:cover; width:100%; }
.about-img-sub{
  position:absolute; bottom:-40px; left:-40px; width:46%; aspect-ratio:1; object-fit:cover;
  border-radius:12px; border:6px solid var(--white); box-shadow:0 20px 40px rgba(0,0,0,0.18);
}
.about-badge{
  position:absolute; top:20px; right:20px; background:var(--gold); color:var(--ink);
  padding:14px 20px; border-radius:12px; text-align:center; box-shadow:0 12px 24px rgba(0,0,0,0.2);
}
.about-badge-num{ display:block; font-family:var(--font-display); font-weight:700; font-size:1.4rem; }
.about-badge-label{ font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }

@media (max-width:900px){
  .about-inner{ grid-template-columns:1fr; gap:60px; }
  .about-text .section-title, .about-text{ text-align:left; }
  .about-img-sub{ width:42%; left:-16px; bottom:-30px; }
}

/* ============ SERVICES ============ */
.services{ padding:110px 5vw; background:#F1EEE6; }
.services-grid{
  max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.service-card{
  background:var(--white); border-radius:16px; padding:34px 28px; border:1px solid rgba(18,22,28,0.06);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover{
  transform:translateY(-6px); box-shadow:0 20px 40px rgba(18,22,28,0.09); border-color:rgba(245,179,1,0.35);
}
.service-icon{
  width:56px; height:56px; border-radius:12px; background:var(--ink); color:var(--gold);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  transition:background .35s;
}
.service-card:hover .service-icon{ background:var(--gold); color:var(--ink); }
.service-card h3{ font-family:var(--font-display); font-size:1.2rem; margin-bottom:10px; }
.service-card p{ color:#5a5f66; font-size:0.92rem; }

@media (max-width:900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .services-grid{ grid-template-columns:1fr; } }

/* ============ GALLERY ============ */
.gallery{ padding:110px 5vw; max-width:1360px; margin:0 auto; }
.gallery-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.gallery-item{
  position:relative; border-radius:14px; overflow:hidden; aspect-ratio:4/3.1; cursor:zoom-in;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease);
}
.gallery-item::after{
  content:'Visa'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(18,22,28,0.55); color:var(--white); font-weight:600; opacity:0; transition:opacity .35s;
}
.gallery-item:hover img{ transform:scale(1.08); }
.gallery-item:hover::after{ opacity:1; }

@media (max-width:760px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .gallery-grid{ grid-template-columns:1fr; } }

/* ============ LIGHTBOX ============ */
.lightbox{
  position:fixed; inset:0; background:rgba(18,22,28,0.94); z-index:2000;
  display:flex; align-items:center; justify-content:center; padding:5vw;
  opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:88vh; border-radius:8px; box-shadow:0 30px 60px rgba(0,0,0,0.4); }
.lightbox-close{
  position:absolute; top:24px; right:32px; color:var(--white); font-size:2.4rem; line-height:1;
  transition:color .3s, transform .3s;
}
.lightbox-close:hover{ color:var(--gold); transform:rotate(90deg); }

/* ============ WIDE MEDIA BANNER ============ */
.wide-media{ width:100%; overflow:hidden; }
.wide-media img{ width:100%; height:clamp(220px,32vw,420px); object-fit:cover; }

/* ============ CONTACT ============ */
.contact{ background:var(--ink); padding:110px 5vw 0; color:var(--white); }
.contact-inner{
  max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:70px;
  padding-bottom:100px;
}
.contact-title{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2rem,4vw,3rem); line-height:1.15;
  margin:8px 0 20px;
}
.contact-lead{ color:var(--steel); font-size:1.05rem; margin-bottom:32px; max-width:440px; }

.contact-list{ display:flex; flex-direction:column; gap:18px; margin-bottom:32px; }
.contact-list li{ display:flex; align-items:center; gap:14px; color:var(--white); font-size:0.95rem; }
.contact-list li svg{ color:var(--gold); }
.contact-list a{ transition:color .3s; }
.contact-list a:hover{ color:var(--gold-soft); }

.social-link{
  display:inline-flex; align-items:center; gap:10px; color:var(--gold); font-weight:600; font-size:0.92rem;
  transition:color .3s;
}
.social-link:hover{ color:var(--gold-soft); }

/* Form */
.contact-form{ display:flex; flex-direction:column; gap:22px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }

.form-field{ position:relative; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--border-strong);
  padding:12px 2px; color:var(--white); font-size:1rem; outline:none; resize:none; appearance:none;
  transition:border-color .3s;
}
.form-field select{ cursor:pointer; }
.form-field select option{ background:var(--ink-2); color:var(--white); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color:var(--gold); }
.form-field label{
  position:absolute; left:2px; top:12px; color:var(--steel); font-size:1rem; pointer-events:none;
  transition:all .25s var(--ease);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label{
  top:-14px; font-size:0.72rem; color:var(--gold); letter-spacing:0.03em;
}
.select-label{ top:-14px !important; font-size:0.72rem !important; color:var(--gold-soft) !important; }

.form-success{ display:none; flex-direction:column; align-items:center; gap:10px; padding:30px 0; text-align:center; }
.form-success.show{ display:flex; animation:fadeUp .5s var(--ease); }
.form-success h3{ font-family:var(--font-display); font-size:1.5rem; }
.form-success p{ color:var(--steel); }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(16px);} to{ opacity:1; transform:translateY(0);} }

@media (max-width:900px){ .contact-inner{ grid-template-columns:1fr; gap:56px; } }

.contact-map{ width:100%; height:380px; border-top:1px solid var(--border); }
.contact-map iframe{ width:100%; height:100%; border:0; filter:grayscale(0.2) contrast(1.05); }

/* ============ FOOTER ============ */
.site-footer{ background:var(--ink-2); padding:36px 5vw; }
.footer-inner{
  max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.footer-logo{ height:32px; filter:grayscale(1) brightness(2); opacity:0.8; }
.footer-inner p{ color:var(--steel); font-size:0.85rem; }
.footer-top-link{ color:var(--gold); font-size:0.85rem; font-weight:600; transition:color .3s; }
.footer-top-link:hover{ color:var(--gold-soft); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ============ FOCUS ============ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold); outline-offset:3px;
}