/* ============================================================
   Håkan Ljungs Rör AB – Main Stylesheet
   Design: Dark Navy + Copper | Oswald + Inter
============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- DESIGN TOKENS ---- */
:root {
  --bg:            #0D1B2A;
  --bg-2:          #122233;
  --bg-card:       #192C40;
  --bg-card-h:     #1E3349;
  --copper:        #C87941;
  --copper-hover:  #D98C50;
  --copper-dim:    rgba(200, 121, 65, 0.14);
  --copper-glow:   rgba(200, 121, 65, 0.28);
  --copper-border: rgba(200, 121, 65, 0.22);
  --text:          #EFF4F9;
  --text-2:        #8EA3B8;
  --text-3:        #556372;
  --border:        rgba(255, 255, 255, 0.07);
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Inter', sans-serif;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --trans:         0.28s var(--ease);
  --shadow:        0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm:     0 4px 16px rgba(0, 0, 0, 0.3);
  --radius:        10px;
  --radius-lg:     18px;
  --container:     1200px;
  --section-py:    96px;
}

/* ---- UTILITIES ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.accent-text {
  color: var(--copper);
  font-style: normal;
}

.section { padding-block: var(--section-py); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header .section-label {
  justify-content: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--copper-hover));
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--trans);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.btn:active {
  transform: translateY(1px) scale(0.97);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: btn-ripple 0.55s var(--ease) forwards;
  pointer-events: none;
}

@keyframes btn-ripple {
  to { transform: scale(4); opacity: 0; }
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 121, 65, 0.35);
}

.btn-primary:hover {
  background: var(--copper-hover);
  box-shadow: 0 6px 28px rgba(200, 121, 65, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- TOPBAR ---- */
#topbar {
  background: var(--copper);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#topbar a { color: #fff; font-weight: 700; }
#topbar a:hover { text-decoration: underline; }

.topbar-right {
  opacity: 0.85;
  font-size: 0.78rem;
}

/* ---- HEADER ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--trans), background var(--trans);
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  background: rgba(10, 22, 35, 0.99);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity var(--trans);
}

.logo:hover { opacity: 0.88; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Nav */
#main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Header phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--copper);
  padding: 8px 16px;
  border: 1.5px solid var(--copper-border);
  border-radius: 6px;
  flex-shrink: 0;
  transition: var(--trans);
}

.header-phone:hover {
  background: var(--copper-dim);
  border-color: var(--copper);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
#hero {
  position: relative;
  min-height: calc(100vh - 106px); /* 38px topbar + 68px header */
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-top: 0;
  padding-bottom: 48px;
}

/* Darkening overlay + dot grid – sits on top of hero image */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 27, 42, 0.82);
  background-image: radial-gradient(rgba(200, 121, 65, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

.hero-pipe-art {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 480px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-top: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
}

.tag-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  position: relative;
}

.tag-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 24px;
  word-break: break-word;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero-badge svg { color: var(--copper); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  border-radius: 1px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(1) translateY(0); }
  50%       { opacity: 1;   transform: scaleY(1.15) translateY(4px); }
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  background: var(--bg-card-h);
  border-color: var(--copper-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card--featured {
  background: linear-gradient(135deg, #1F3350 0%, #192C40 100%);
  border-color: var(--copper-border);
}

.service-card--featured::after { background: var(--copper); }

.services-show-more {
  display: none;
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--copper-border);
  border-radius: var(--radius);
  color: var(--copper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--trans);
}

.services-show-more:hover {
  background: rgba(200, 121, 65, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--copper);
  transition: transform 0.32s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-8deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card-body { flex: 1; }

.service-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--copper-dim);
  border: 1px solid var(--copper-border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body p {
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--trans);
  width: fit-content;
}

.service-link span {
  display: inline-block;
  transition: transform var(--trans);
}

.service-link:hover,
.service-card:hover .service-link {
  color: var(--copper);
}

.service-card:hover .service-link span {
  transform: translateX(4px);
}

/* ---- STATS ---- */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 60px;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--copper);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ---- ABOUT ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}

.about-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 20px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--copper-dim);
  border: 1px solid var(--copper-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper);
}

.highlight-item strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
}

/* About card */
.about-card-wrap {
  perspective: 1000px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--copper-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-card-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--copper), #E09850, var(--copper));
}

.about-card-inner {
  padding: 32px 32px 28px;
}

.about-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.about-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.about-card-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.about-card-type {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.about-card-divider {
  height: 1px;
  background: var(--border);
  margin-block: 20px;
}

.about-card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card-details p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

.about-card-details a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--copper);
  transition: color var(--trans);
}

.about-card-details a:hover { color: var(--copper-hover); }

.about-card-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.02em;
}

/* ---- WHY US ---- */
.why-section {
  background: var(--bg-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-item {
  background: var(--bg-2);
  padding: 36px 28px;
  position: relative;
  transition: background var(--trans), box-shadow var(--trans);
}

.why-item:hover {
  background: var(--bg-card);
  box-shadow: inset 3px 0 0 var(--copper);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--copper-dim);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  transition: color var(--trans);
}

.why-item:hover .why-num { color: rgba(200, 121, 65, 0.3); }

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- SERVICE AREA ---- */
.area-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: center;
}

.area-content .section-title { margin-top: 0; }

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 24px 20px;
}

.area-tag {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: var(--trans);
}

.area-tag--primary {
  color: var(--copper);
  background: var(--copper-dim);
  border-color: var(--copper-border);
  font-weight: 600;
}

.area-tag:not(.area-tag--primary):hover {
  border-color: var(--copper-border);
  color: var(--text);
}

.area-note {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 24px;
  font-style: italic;
}

.area-visual { display: flex; justify-content: center; }

.area-map-block {
  background: var(--bg-card);
  border: 1px solid var(--copper-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.area-map-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.area-map-sub {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ---- GALLERY CAROUSEL ---- */
.projekt-section { background: var(--bg-2); }

.gallery-carousel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.gallery-slides { position: relative; }

.gallery-slide { display: none; }
.gallery-slide.active {
  display: block;
  animation: galleryFade 0.4s ease;
}

@keyframes galleryFade {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-img-wrap img.hidden { display: none; }

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
  background: var(--bg-card);
}

.gallery-placeholder.visible { display: flex; }

.gallery-placeholder span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Prev / Next buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.75);
  border: 1px solid var(--copper-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: var(--trans);
  z-index: 2;
}

.gallery-btn:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

/* Footer: dots + counter */
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  border: none;
  cursor: pointer;
  transition: var(--trans);
  padding: 0;
}

.gallery-dot.active,
.gallery-dot:hover {
  background: var(--copper);
  transform: scale(1.25);
}

.gallery-counter {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  min-width: 48px;
}

/* ---- CONTACT ---- */
.contact-section { background: var(--bg-2); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 121, 65, 0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238EA3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

.form-group select option { background: var(--bg-card); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
  min-height: 20px;
}

.form-note.success {
  color: #5cb87a;
  animation: note-pop 0.4s var(--ease);
}

.form-note.error {
  color: #e07070;
  animation: note-pop 0.4s var(--ease);
}

@keyframes note-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.btn-sent {
  background: #3a8c5c !important;
  box-shadow: 0 4px 20px rgba(58, 140, 92, 0.4) !important;
}

/* Contact aside */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ci {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}

.ci:last-child { border-bottom: none; }

a.ci:hover .ci-val { color: var(--copper); }

.ci-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--copper-dim);
  border: 1px solid var(--copper-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper);
}

.ci-text { display: flex; flex-direction: column; gap: 2px; }

.ci-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ci-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--trans);
}

/* Opening hours */
.opening-hours {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.opening-hours h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.oh-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-2);
  padding-block: 5px;
}

.oh-row--accent { color: var(--copper); font-weight: 500; }

/* ---- FOOTER ---- */
#site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-name { color: var(--text); }

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a,
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--trans);
}

.footer-col a:hover,
.footer-col ul li a:hover { color: var(--copper); }

.footer-contact-col {
  display: flex;
  flex-direction: column;
}

.footer-contact-col h4 { margin-bottom: 14px; }

.footer-contact-col a,
.footer-contact-col address {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
  transition: color var(--trans);
}

.footer-contact-col a:hover { color: var(--copper); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-orgnr { font-size: 0.78rem; }

/* ---- BACK TO TOP ---- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200, 121, 65, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--trans);
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#back-to-top:hover {
  background: var(--copper-hover);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

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

  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-card-wrap { max-width: 480px; margin-inline: auto; width: 100%; }

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

  .area-layout { grid-template-columns: 1fr; gap: 40px; }
  .area-visual { justify-content: flex-start; }
  .area-map-block { max-width: 340px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

/* Mobile – 768px */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  /* Header */
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 35, 0.99);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }

  #main-nav.open { display: flex; }

  .nav-link {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .header-phone { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  /* Hero */
  .hero-pipe-art { display: none; }
  #hero { min-height: auto; padding-bottom: 64px; padding-top: 16px; }
  .hero-content { padding-top: 40px; }
  .hero-scroll { display: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card--extra-mobile { display: none; }
  .service-card--extra-mobile.expanded { display: flex; }
  .services-show-more { display: block; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
  }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small mobile – 480px */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px 20px; }
  .hero-sub { font-size: 0.95rem; }
  .section-title { font-size: 1.7rem; }
  .about-card-inner { padding: 24px 20px 20px; }
  .contact-card { padding: 24px 20px; }
  .why-item { padding: 28px 20px; }
  .why-num { font-size: 2.2rem; }
  #back-to-top { bottom: 16px; right: 16px; }
}

/* Topbar hide on small screens */
@media (max-width: 540px) {
  .topbar-right { display: none; }
}
