/* =========================================================
   Porin Autopesu – Modern Redesign
   Colors: #ff0015 (red), #000 (black), #fff (white)
   Font: Poppins
   ========================================================= */

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

:root {
  --red:    #ff0015;
  --red-dk: #cc0010;
  --black:  #000000;
  --dark:   #0a0a0a;
  --dark2:  #111111;
  --dark3:  #1a1a1a;
  --grey:   #adadad;
  --white:  #ffffff;
  --nav-h:  72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,0,21,0.18);
  transition: background 0.3s ease;
}

.nav-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.22s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  font-size: 1.4rem;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  z-index: 9100;
}

.hamburger i {
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.12s ease;
  display: block;
}

.hamburger.is-open i {
  transform: rotate(90deg);
}

/* =========================================================
   MOBILE MENU OVERLAY
   ========================================================= */
.mob-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(255,0,21,0.35);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding: 40px 24px;
  z-index: 8900;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.mob-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mob-menu a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  width: 100%;
  max-width: 260px;
  text-align: center;
  transition: background 0.2s, color 0.2s;

  /* stagger – set via nth-child below */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s, color 0.2s;
}

.mob-menu.open a:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0.08s; }
.mob-menu.open a:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 0.12s; }
.mob-menu.open a:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 0.16s; }
.mob-menu.open a:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 0.20s; }

.mob-menu a:hover {
  background: rgba(255,0,21,0.12);
  color: var(--red);
}

.mob-menu a.active {
  color: var(--red);
}

/* Close X button inside mob-menu (hidden on desktop, shown on mobile) */
.mob-close-btn {
  display: none;
}

/* =========================================================
   PAGE OFFSET (sticky nav)
   ========================================================= */
.page-top {
  padding-top: var(--nav-h);
}

/* =========================================================
   HERO / BANNER
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: brightness(0.55);
}

.hero:hover .hero-bg {
  transform: scale(1.00);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}

.hero-content h1 span {
  color: var(--red);
}

.hero-content p {
  margin-top: 16px;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 14px 36px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  box-shadow: 0 8px 30px rgba(255,0,21,0.35);
}

.hero-cta:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Sub-hero banners (non-home pages) */
.banner {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.92) 100%);
}

.banner-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section {
  padding: 80px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 56px;
  font-weight: 300;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 52px;
  border-radius: 2px;
}

/* =========================================================
   HOME – ABOUT / INTRO
   ========================================================= */
.about-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================================
   HOME – PARTNER LOGOS
   ========================================================= */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 560px;
  margin: 48px auto 0;
}

.partner-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, transform 0.25s;
}

.partner-card:hover {
  border-color: rgba(255,0,21,0.45);
  transform: translateY(-3px);
}

.partner-card img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(30%) brightness(0.9);
  transition: filter 0.25s;
}

.partner-card:hover img {
  filter: none;
}

/* =========================================================
   HOME – SERVICES QUICK CARDS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.service-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--red);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(255,0,21,0.18);
}

.service-card i {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.6;
}

/* =========================================================
   HINNASTO – PRICE SECTION
   ========================================================= */
.price-section {
  padding: 72px 24px 0;
  max-width: 1160px;
  margin: 0 auto;
}

.price-section:last-of-type {
  padding-bottom: 80px;
}

.price-section-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.price-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 36px;
}

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

.price-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.price-card:hover {
  border-color: rgba(255,0,21,0.4);
  transform: translateY(-3px);
}

.price-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.price-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
}

.price-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
}

.price-card p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.6;
}

.price-card .addon {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.price-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 180px;
}

/* Photo-only card */
.price-card.photo-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.price-card.photo-card img {
  height: 100%;
  min-height: 180px;
  width: 100%;
  object-fit: cover;
}

/* Photo strip below price grid */
.price-photos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.price-photos img {
  flex: 1 1 200px;
  max-height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Warning note */
.price-note {
  margin: 48px auto 0;
  max-width: 800px;
  text-align: center;
  padding: 18px 28px;
  border: 1px solid rgba(255,0,21,0.35);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   SIJAINTI & YHTEYSTIEDOT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item i {
  color: var(--red);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,0,21,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.form-section {
  padding: 80px 24px;
  max-width: 680px;
  margin: 0 auto;
}

.form-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 10px;
}

.form-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.22s, box-shadow 0.22s;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,0,21,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.captchakeskitys {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--dark2);
  border-top: 2px solid var(--red);
  padding: 36px 24px;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 20px;
  max-width: 160px;
}

.footer-logo img {
  width: 100%;
  object-fit: contain;
  filter: brightness(0.9);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.footer-copy a {
  color: var(--red);
  transition: opacity 0.2s;
}

.footer-copy a:hover {
  opacity: 0.75;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.full-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 80px 24px;
  text-align: center;
}

.full-page i {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.full-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-page p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 420px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.btn-back:hover { opacity: 0.85; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .navbar { padding: 0 24px; }

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

  .map-wrap iframe {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .navbar { padding: 0 16px; }
  .nav-logo img { height: 38px; }

  .hero-content h1 { font-size: 2rem; }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 340px;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 56px 16px; }
  .price-section { padding: 48px 16px 0; }

  .map-wrap iframe { height: 250px; }
}

@media (max-width: 420px) {
  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
  }
}
