/* ============================================================
   ELEKTRO FIXUJCZ – Main Stylesheet
   Design: Dark professional + electric blue + orange accents
   Architecture: Mobile-first, CSS custom properties, BEM
   ============================================================ */

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

:root {
  /* Colors */
  --clr-bg:          #0d1117;
  --clr-bg-2:        #161b22;
  --clr-bg-3:        #1c2230;
  --clr-surface:     #1e2535;
  --clr-border:      #2d3748;
  --clr-blue:        #3b82f6;
  --clr-blue-light:  #60a5fa;
  --clr-blue-dark:   #1d4ed8;
  --clr-orange:      #f97316;
  --clr-orange-light:#fb923c;
  --clr-green:       #22c55e;
  --clr-purple:      #a855f7;
  --clr-stone:       #a8927a;
  --clr-text:        #e2e8f0;
  --clr-text-muted:  #94a3b8;
  --clr-text-faint:  #64748b;

  /* Typography */
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --fs-xs:      0.75rem;
  --fs-sm:      0.875rem;
  --fs-base:    1rem;
  --fs-lg:      1.125rem;
  --fs-xl:      1.25rem;
  --fs-2xl:     1.5rem;
  --fs-3xl:     1.875rem;
  --fs-4xl:     2.25rem;
  --fs-5xl:     3rem;
  --fs-6xl:     3.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Border radius */
  --r-sm:  0.375rem;
  --r-md:  0.5rem;
  --r-lg:  0.75rem;
  --r-xl:  1rem;
  --r-2xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.6);
  --shadow-blue: 0 0 30px rgba(59,130,246,.2);
  --shadow-orange: 0 0 30px rgba(249,115,22,.2);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 75rem;
  --header-h:  4.5rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-blue-light), var(--clr-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--clr-orange); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-tag {
  display: inline-block;
  background: rgba(59, 130, 246, .12);
  color: var(--clr-blue-light);
  border: 1px solid rgba(59, 130, 246, .25);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--fs-base);
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(59,130,246,.5);
}
.btn--primary:hover {
  background: var(--clr-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}
.btn--ghost:hover {
  border-color: var(--clr-blue);
  color: var(--clr-blue-light);
  background: rgba(59,130,246,.06);
  transform: translateY(-2px);
}

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

/* ── Header / Navigation ────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--clr-border);
  background: rgba(13, 17, 23, .96);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.nav__logo-text-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  /* Původní logo je pro světlé pozadí – filtr ho přizpůsobí tmavému webu.
     brightness(0) = vše černé, invert(1) = vše bílé,
     pak sepia+saturate+hue-rotate obnoví modrou barvu (#0083dd → ~#60a5fa) */
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(190deg) brightness(1.1);
  transition: filter var(--transition);
}

.nav__logo:hover .nav__logo-text-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(195deg) brightness(1.2);
}

.nav__menu {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-blue);
  transition: width var(--transition);
  border-radius: var(--r-full);
}
.nav__link:hover { color: var(--clr-text); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  background: var(--clr-blue);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-lg);
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--clr-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--r-full);
  transition: var(--transition);
  transform-origin: center;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--clr-bg-2);
  padding: var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  gap: var(--sp-4);
  animation: slideDown .25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-16);
  overflow: hidden;
}

/* Hero two-column wrapper */
.hero__wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

/* Hero illustration */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--r-2xl);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  box-shadow: var(--shadow-blue), var(--shadow-lg);
  transition: var(--transition-slow);
}

.hero__img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 0 50px rgba(59,130,246,.25), var(--shadow-lg);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 80%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  color: var(--clr-blue-light);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-6);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero__title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-6);
}

.hero__desc {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: var(--clr-text-muted);
  max-width: 36rem;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
}

.hero__stat strong {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--clr-text);
}

.hero__stat span {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-text-faint);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Services ───────────────────────────────────────────────── */
.services {
  padding-block: var(--sp-24);
  background: var(--clr-bg-2);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.service-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  transition: var(--transition-slow);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  border-color: rgba(59,130,246,.25);
  box-shadow: var(--shadow-blue);
}
.service-card--featured::before { opacity: 1; }

/* Service card image */
.service-card__img-wrap {
  margin: calc(-1 * var(--sp-8));
  margin-bottom: var(--sp-6);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  overflow: hidden;
  line-height: 0;
  border-bottom: 1px solid var(--clr-border);
}

.service-card__img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  background: var(--clr-bg);
}

.service-card:hover .service-card__img-wrap img {
  transform: scale(1.04);
}

/* Service card body (below image) */
.service-card__body {
  display: flex;
  flex-direction: column;
}

/* Horizontal layout for featured card */
.service-card--horizontal {
  display: grid;
  grid-template-columns: 1fr;
}

.service-card--horizontal .service-card__img-wrap {
  margin: calc(-1 * var(--sp-8));
  margin-bottom: var(--sp-6);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.service-card--horizontal .service-card__img-wrap img {
  height: 200px;
}

.service-card--stone {
  border-color: rgba(168,146,122,.25);
}
.service-card--stone::before {
  background: linear-gradient(90deg, var(--clr-stone), #c4a882);
}
.service-card--stone:hover {
  border-color: rgba(168,146,122,.4);
  box-shadow: 0 0 30px rgba(168,146,122,.15);
}

.service-card__stone-badge {
  display: inline-block;
  background: rgba(168,146,122,.15);
  border: 1px solid rgba(168,146,122,.3);
  color: var(--clr-stone);
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--sp-3);
}

.service-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
}

.service-card__icon-wrap--blue   { background: rgba(59,130,246,.15); color: var(--clr-blue-light); }
.service-card__icon-wrap--orange { background: rgba(249,115,22,.15);  color: var(--clr-orange-light); }
.service-card__icon-wrap--green  { background: rgba(34,197,94,.15);   color: var(--clr-green); }
.service-card__icon-wrap--purple { background: rgba(168,85,247,.15);  color: var(--clr-purple); }
.service-card__icon-wrap--stone  { background: rgba(168,146,122,.15); color: var(--clr-stone); }

.service-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.service-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.service-card__list {
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.service-card__list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-blue);
  font-weight: 700;
}

.service-card--stone .service-card__list li::before {
  color: var(--clr-stone);
}

.service-card__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-blue-light);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.service-card__link:hover { color: var(--clr-blue); gap: var(--sp-3); }

.service-card--stone .service-card__link { color: var(--clr-stone); }
.service-card--stone .service-card__link:hover { color: #c4a882; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-section {
  padding-block: var(--sp-24);
}

.section-tag--stone {
  background: rgba(168,146,122,.12);
  color: var(--clr-stone);
  border-color: rgba(168,146,122,.25);
}

.gallery-category {
  margin-bottom: var(--sp-12);
}

.gallery-category__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.gallery-category__title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--clr-stone);
  border-radius: var(--r-full);
  display: inline-block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: white;
}

.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  animation: fadeIn .2s ease;
}

.lightbox[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  animation: zoomIn .25s ease;
}

@keyframes zoomIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox__caption {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox__close {
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__prev { left: var(--sp-4); }
.lightbox__next { right: var(--sp-4); }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(0) scale(1.1);
}

.lightbox__prev:hover,
.lightbox__next:hover { transform: translateY(-50%) scale(1.1); }

/* ── Why Us ─────────────────────────────────────────────────── */
.why-us {
  padding-block: var(--sp-24);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.why-us__content .section-title { text-align: left; }
.why-us__content .section-tag  { display: inline-block; }

.why-us__text {
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.why-us__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.feature-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(34,197,94,.15);
  color: var(--clr-green);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.feature-item p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* Why-us image */
.why-us__visual {
  position: relative;
}

.why-us__img-wrap {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-blue), var(--shadow-lg);
  background: var(--clr-surface);
}

.why-us__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.why-us__img-wrap:hover .why-us__img {
  transform: scale(1.02);
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials {
  padding-block: var(--sp-24);
  background: var(--clr-bg-2);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.testimonial-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(59,130,246,.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card--featured {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(249,115,22,.05));
  border-color: rgba(59,130,246,.2);
  box-shadow: var(--shadow-blue);
}

.testimonial-card__stars {
  color: #fbbf24;
  letter-spacing: .1em;
}

.testimonial-card p {
  color: var(--clr-text-muted);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong {
  font-size: var(--fs-sm);
  color: var(--clr-text);
}

.testimonial-card footer span {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact {
  padding-block: var(--sp-24);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-6);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(59,130,246,.25);
  transform: translateX(4px);
}

.contact-info-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,.12);
  color: var(--clr-blue-light);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card strong {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-faint);
  margin-bottom: var(--sp-1);
}

.contact-info-card a {
  color: var(--clr-blue-light);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: color var(--transition);
}
.contact-info-card a:hover { color: var(--clr-blue); }

.contact-info-card span {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.contact__map {
  margin-top: var(--sp-4);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

/* Contact form */
.contact__form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
  color: var(--clr-text);
  font-size: var(--fs-base);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

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

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

.form-error {
  font-size: var(--fs-xs);
  color: #ef4444;
  min-height: 1em;
}

/* Checkbox */
.form-group--checkbox { flex-direction: row; align-items: flex-start; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--clr-bg-3);
  border: 2px solid var(--clr-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--clr-blue);
  border-color: var(--clr-blue);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-label a {
  color: var(--clr-blue-light);
  text-decoration: underline;
}

.form-success[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--clr-green);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-4);
  max-width: 20rem;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-faint);
  margin-bottom: var(--sp-4);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links a,
.footer__links li {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--clr-blue-light); }

.footer__contact-quick {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.footer__contact-quick a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-blue-light);
  transition: color var(--transition);
}
.footer__contact-quick a:hover { color: var(--clr-blue); }

.footer__bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
}

.footer__gdpr {
  max-width: 50rem;
}

/* ── FAB (Floating Action Button) ───────────────────────────── */
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 56px;
  height: 56px;
  background: var(--clr-orange);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(249,115,22,.5);
  z-index: 900;
  transition: var(--transition);
}

.fab:hover {
  background: var(--clr-orange-light);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(249,115,22,.6);
}

/* ── Responsive – tablet ────────────────────────────────────── */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

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

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

  .gallery-grid { grid-template-columns: repeat(4, 1fr); }

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

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

/* ── Responsive – desktop ───────────────────────────────────── */
@media (min-width: 1024px) {
  .nav__menu {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  /* Hero 2-column layout */
  .hero__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Featured card: horizontal 2-column layout */
  .service-card--featured {
    grid-column: span 3;
  }

  .service-card--horizontal {
    grid-template-columns: 1fr 1fr;
  }

  .service-card--horizontal .service-card__img-wrap {
    margin: calc(-1 * var(--sp-8));
    margin-right: 0;
    border-radius: var(--r-2xl) 0 0 var(--r-2xl);
    border-bottom: none;
    border-right: 1px solid var(--clr-border);
  }

  .service-card--horizontal .service-card__img-wrap img {
    height: 100%;
    min-height: 300px;
  }

  /* Why us: image left, text right */
  .why-us__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Hide FAB on desktop (phone button visible in nav) */
  .fab {
    display: none;
  }
}

@media (min-width: 1280px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Animations & Scroll reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Accessibility ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero__scroll-hint { display: none; }
}
