/* =========================================================
   Elektrische Kehrmaschine — Purgar d.o.o.
   Shared stylesheet
   ========================================================= */

/* --- Google Font import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --blue:       #1a66c2;
  --blue-dark:  #155299;
  --blue-light: #f0f5fb;
  --dark:       #1e2a3a;
  --text:       #2c3540;
  --muted:      #5a6270;
  --border:     #dde4ee;
  --white:      #ffffff;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(30, 42, 58, 0.10);
  --max-w:      1100px;
  --header-h:   68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--blue-light);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--blue {
  background: var(--blue);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.main-nav a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  /* On desktop: plain text display, no button frame */
  cursor: default;
  text-decoration: none;
}

.header-phone:hover {
  color: var(--blue-dark);
}

.header-phone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-left strong {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-right a {
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}

.footer-right a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* =========================================================
   PHOTO GALLERY
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.gallery-grid img.landscape {
  aspect-ratio: 4 / 3;
}

.gallery-grid img.portrait {
  aspect-ratio: 3 / 4;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* =========================================================
   VIDEO SECTION
   ========================================================= */

.video-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.video-ratio {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   CTA STRIP
   ========================================================= */

.cta-strip {
  text-align: center;
  padding: 64px 24px;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.cta-strip .cta-sub {
  color: rgba(255,255,255,0.80);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   TWO-COLUMN CONTENT
   ========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col--55-45 {
  grid-template-columns: 55fr 45fr;
}

.two-col--45-55 {
  grid-template-columns: 45fr 55fr;
}

.two-col-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.two-col-text h1,
.two-col-text h2 {
  margin-bottom: 20px;
}

/* =========================================================
   SPECS TABLE
   ========================================================= */

.specs-section {
  background: var(--blue-light);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.specs-table thead th {
  background: var(--blue);
  color: var(--white);
  text-align: left;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.specs-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.specs-table tbody tr:nth-child(even) {
  background: #e8f0fb;
}

.specs-table tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.specs-table .spec-label {
  font-weight: 600;
  color: var(--dark);
  width: 55%;
}

.specs-table .spec-value {
  color: var(--text);
}

/* =========================================================
   PAGE HEADER BAND
   ========================================================= */

.page-header {
  background: var(--blue-light);
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* =========================================================
   PULL QUOTE
   ========================================================= */

.pull-quote {
  border-left: 4px solid var(--blue);
  padding: 12px 20px;
  margin: 28px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =========================================================
   CONTACT CARDS
   ========================================================= */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.contact-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  background: var(--white);
  transition: box-shadow 0.2s;
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-card--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.contact-card--primary h2,
.contact-card--primary h3,
.contact-card--primary p {
  color: var(--white);
}

.contact-card--primary a {
  color: var(--white);
}

.contact-card--primary a:hover {
  color: rgba(255,255,255,0.85);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
}

.contact-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Invert icon for dark-bg cards */
.contact-card--primary .contact-card-icon img,
.contact-card--secondary .contact-card-icon img {
  filter: brightness(0) invert(1);
}

.contact-card--secondary {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.contact-card--secondary h2,
.contact-card--secondary h3,
.contact-card--secondary p {
  color: var(--white);
}

.contact-card--secondary a {
  color: rgba(255,255,255,0.90);
}

.contact-card--secondary a:hover {
  color: var(--white);
}

.contact-card--tertiary {
  background: #0e7490;
  border-color: #0e7490;
  color: var(--white);
}

.contact-card--tertiary h2,
.contact-card--tertiary h3,
.contact-card--tertiary p {
  color: var(--white);
}

.contact-card--tertiary a {
  color: rgba(255,255,255,0.90);
}

.contact-card--tertiary a:hover {
  color: var(--white);
}

.contact-card--tertiary .contact-card-icon img {
  filter: brightness(0) invert(1);
}

.contact-card h2,
.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-card .phone-big {
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin: 8px 0 4px;
  letter-spacing: -0.3px;
}

.contact-card .hours {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================
   CONTACT FORM + MAP
   ========================================================= */

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap h3 {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 194, 0.12);
}

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

.map-wrap h3 {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */

.whatsapp-float,
.facebook-float {
  position: fixed;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.whatsapp-float {
  bottom: 24px;
  background: #25d366;
}

.facebook-float {
  bottom: 92px;
  background: #1877f2;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  transform: scale(1.08);
}

.facebook-float:hover {
  background: #0f65d4;
  transform: scale(1.08);
}

.whatsapp-float svg,
.facebook-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* =========================================================
   DESKTOP: tel: links non-clickable (no calling app assumed)
   ========================================================= */

@media (min-width: 769px) {
  .header-phone,
  .footer-right a[href^="tel:"] {
    pointer-events: none;
    cursor: default;
  }
}

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

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

  .two-col,
  .two-col--55-45,
  .two-col--45-55 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-col--45-55 .two-col-img {
    order: -1;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    gap: 4px;
  }

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

  .main-nav a {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .main-nav a.active {
    border-bottom: none;
    background: var(--blue-light);
    color: var(--blue);
  }

  .header-phone {
    display: none;
  }
}

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

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

  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: 420px;
  }
}
