﻿:root {
  color-scheme: light;
  --bg: #fdfbf8;
  --bg-alt: #fdfbf8;
  --ink: #151411;
  --muted: #5f5a52;
  --accent: #e8040f;
  --accent-dark: #e8040f;
  --accent-soft: rgba(255, 122, 47, 0.18);
  --line: #e3dbd2;
  --shadow: 0 24px 60px rgba(31, 30, 27, 0.12);
  --radius: 18px;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7ee, var(--bg));
  line-height: 1.6;
  animation: fade-in 0.8s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 8px 22px rgba(31, 30, 27, 0.05);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.4px;
  display: flex;
  flex-direction: column;
}

.logo small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  position: relative;
}

.site-nav a.active,
.site-nav a:hover {
  border-color: transparent;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 9px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
}

.nav-close {
  align-self: flex-end;
  background: #e8040f;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.nav-contact-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  display: none;
}

.nav-contact-block p:first-child {
  font-weight: 700;
  margin-bottom: 6px;
}

.nav-contact-block a {
  color: #fff;
}

.nav-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(215, 92, 31, 0.24);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.hero {
  padding: 160px 0 140px;
  position: relative;
  overflow: hidden;
  min-height: 110vh;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 20%,
    rgba(255, 122, 47, 0.2),
    transparent 45%
  );
  z-index: 0;
}

.hero-dark {
  color: #fff;
  background: #0b0b0b;
}

.hero-dark::after {
  background: linear-gradient(
    90deg,
    rgba(4, 4, 4, 0.85) 0%,
    rgba(4, 4, 4, 0.35) 55%,
    rgba(4, 4, 4, 0.1) 70%
  );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 25s ease-in-out infinite;
}

.hero-bg-slide.bg-1 {
  background-image: url("Resources/image1.png");
  animation-delay: 0s;
}

.hero-bg-slide.bg-2 {
  background-image: url("Resources/image2.png");
  animation-delay: 5s;
}

.hero-bg-slide.bg-3 {
  background-image: url("Resources/image3.png");
  animation-delay: 10s;
}

.hero-bg-slide.bg-4 {
  background-image: url("Resources/image4.png");
  animation-delay: 15s;
}

.hero-bg-slide.bg-5 {
  background-image: url("Resources/image5.png");
  animation-delay: 20s;
}

.hero-dark .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy {
  padding-top: 140px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.hero-text-rotator {
  position: relative;
  min-height: 280px;
}

.hero-text-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-text-fade 25s ease-in-out infinite;
}

.hero-text-slide p {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-text-slide.text-1 {
  animation-delay: 0s;
}

.hero-text-slide.text-2 {
  animation-delay: 5s;
}

.hero-text-slide.text-3 {
  animation-delay: 10s;
}

.hero-text-slide.text-4 {
  animation-delay: 15s;
}

.hero-text-slide.text-5 {
  animation-delay: 20s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.keyword-line {
  margin: 18px 0 30px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.hero-card .stat span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card .stat strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 6px;
}

.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 28px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.trust-item .icon,
.value-card .icon {
  background: var(--accent-soft);
  color: var(--accent-dark);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-top: 10px;
}

.services-overview,
.values,
.snapshots,
.why-karuvin,
.services-list,
.safety-content,
.contact-section,
.map-section,
.about-intro {
  padding: 80px 0;
}

.about-intro {
  padding-top: 16px;
  margin-top: -45px;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card,
.value-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 180px;
  box-shadow: 0 16px 40px rgba(31, 30, 27, 0.08);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(31, 30, 27, 0.14);
  border-bottom-color: #e8040f;
}

.service-card h3,
.value-card h3 {
  margin-bottom: 10px;
}

.service-media {
  height: 220px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.service-card:hover .service-media {
  transform: scale(1.05);
}

.service-body {
  background: #fff;
  padding: 18px 20px 22px;
  display: grid;
  gap: 8px;
}

.service-media.install {
  background-image: url("Resources/image1.png");
}

.service-media.distribution {
  background-image: url("Resources/image2.png");
}

.service-media.lighting {
  background-image: url("Resources/image3.png");
}

.service-media.maintenance {
  background-image: url("Resources/image4.png");
}

.service-media.testing {
  background-image: url("Resources/image5.png");
}

.why-karuvin {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.why-copy {
  display: grid;
  gap: 16px;
}

.why-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.why-eyebrow {
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.why-role {
  font-style: italic;
  color: var(--muted);
}

.why-link {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.why-image {
  min-height: 420px;
  border-radius: 22px;
  background-image: url("Resources/image2.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.snapshots {
  background: var(--bg-alt);
}

.snapshot-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.snapshot {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 4px solid transparent;
}

.snapshot figcaption {
  padding: 16px 18px 22px;
  font-weight: 500;
}

.snapshot-image {
  height: 220px;
  background-image: url("Resources/image1.png");
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.snapshot-image.alt {
  background-image: url("Resources/image3.png");
  background-size: cover;
  background-position: center;
}

.snapshot-image.third {
  background-image: url("Resources/image5.png");
  background-size: cover;
  background-position: center;
}

.snapshot:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(31, 30, 27, 0.14);
  border-bottom-color: #e8040f;
}

.snapshot:hover .snapshot-image {
  transform: scale(1.05);
}

.cta {
  padding: 70px 0;
  background: var(--ink);
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.site-footer {
  background: #151411;
  color: #cfc6bb;
  padding: 60px 0;
}

.site-credit {
  text-align: center;
  padding: 16px 12px 26px;
  font-size: 0.9rem;
  color: #6f665b;
  background: #0f0f0f;
}

.site-credit a {
  color: #fff;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin-bottom: 6px;
  color: #cfc6bb;
}

.page-title {
  padding: clamp(120px, 18vh, 160px) 0 40px;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-top: 10px;
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.about-image {
  display: grid;
  gap: 12px;
}

.image-panel {
  background-image: url("Resources/image1.png");
  background-size: cover;
  background-position: center;
  height: 200px;
  border-radius: var(--radius);
}

.image-panel.accent {
  background-image: url("Resources/image2.png");
  background-size: cover;
  background-position: center;
}

.value-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(232, 4, 15, 0.12);
  color: var(--accent);
}

.value-card {
  background: #fff;
  padding: 22px 22px 26px;
  gap: 14px;
  border-left: 4px solid var(--accent);
}

.value-card p {
  color: var(--muted);
}

.services-list {
  background: linear-gradient(180deg, #fff7ee 0%, var(--bg-alt) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.service-row {
  position: relative;
  padding: 28px 28px 26px;
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  border: 1px solid rgba(21, 20, 17, 0.08);
  box-shadow: 0 22px 50px rgba(31, 30, 27, 0.12);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-row::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(232, 4, 15, 0));
  border-radius: 999px;
}

.service-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(31, 30, 27, 0.14);
}

.service-row h2 {
  font-family: var(--font-display);
  margin-bottom: 10px;
}

.service-desc {
  color: var(--muted);
  max-width: 780px;
}

.service-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-label {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.safety-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.safety-points {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.safety-points ul {
  margin-top: 12px;
  padding-left: 18px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-section {
  padding-top: 20px;
  margin-top: -20px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-intro {
  color: var(--muted);
  margin-top: -6px;
}

.contact-title {
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-intro {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 700;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: inherit;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: none;
}

.hero-copy,
.hero-card,
.trust-item,
.service-card,
.value-card,
.snapshot,
.service-row,
.contact-details,
.contact-form {
  animation: rise 0.7s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-item:nth-child(2),
.service-card:nth-child(2),
.value-card:nth-child(2),
.snapshot:nth-child(2) {
  animation-delay: 0.1s;
}

.trust-item:nth-child(3),
.service-card:nth-child(3),
.value-card:nth-child(3),
.snapshot:nth-child(3) {
  animation-delay: 0.2s;
}

.trust-item:nth-child(4),
.service-card:nth-child(4) {
  animation-delay: 0.3s;
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    padding: 90px 32px 32px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    width: 100vw;
    height: 100vh;
    display: flex;
    gap: 18px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .site-nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-contact-block {
    display: grid;
  }
}

@media (max-width: 720px) {
  .header-actions .btn {
    display: none;
  }

  .sticky-cta {
    display: inline-flex;
  }

  .hero {
    padding: 120px 0 90px;
    min-height: auto;
  }

  .hero-copy {
    padding-top: 80px;
  }

  .hero-text-rotator {
    min-height: 240px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .hero-text-slide p {
    font-size: 0.95rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    text-align: center;
    justify-content: center;
  }
}

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

@media (max-width: 560px) {
  .hero-copy {
    padding-top: 60px;
  }

  .hero-text-rotator {
    min-height: 220px;
  }

  .hero {
    padding-bottom: 300px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-text-fade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
