/* =========================================================
   SERFINPO – JEDNOSTRÁNKOVÝ WEB
   Design: tmavá zelená / krémová / zlatá
   ========================================================= */

/* ---------- PROMĚNNÉ ---------- */
:root {
  --green-950: #062f29;
  --green-900: #0a3a32;
  --green-800: #11483e;

  --gold-500: #c9a353;
  --gold-400: #ddbd73;
  --gold-200: #efe0b7;

  --cream-100: #faf8f2;
  --cream-200: #f2eee3;
  --white: #ffffff;

  --text: #17221f;
  --muted: #69716e;
  --border: rgba(17, 72, 62, 0.12);

  --shadow: 0 18px 45px rgba(14, 40, 34, 0.10);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1180px;
}


/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream-100);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}


/* ---------- SPOLEČNÉ PRVKY ---------- */
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-line {
  display: inline-block;
  width: 34px;
  height: 4px;
  margin-bottom: 12px;
  background: var(--gold-500);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.contact-info h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.section-heading > p:last-child,
.contact-info > p {
  margin: 14px auto 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green-950);
}

.btn-primary:hover {
  background: var(--green-800);
}

.btn-gold {
  color: var(--green-950);
  background: var(--gold-400);
}

.btn-gold:hover {
  background: var(--gold-200);
}


/* ---------- HLAVIČKA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 48px;
}

.brand-mark span {
  display: block;
  height: 5px;
  background: var(--gold-500);
  clip-path: polygon(0 50%, 100% 0, 92% 100%);
}

.brand-mark span:nth-child(1) { width: 100%; }
.brand-mark span:nth-child(2) { width: 88%; }
.brand-mark span:nth-child(3) { width: 76%; }
.brand-mark span:nth-child(4) { width: 64%; }
.brand-mark span:nth-child(5) { width: 52%; }

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--green-950);
  font-size: 1.42rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--gold-500);
  transition: right 160ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--green-950);
  background: var(--gold-400);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 850;
}


/* ---------- HERO ---------- */
.hero {
  overflow: hidden;
  padding: 72px 0 0;
  background:
    linear-gradient(120deg, var(--cream-100) 0 58%, var(--cream-200) 58% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 62px;
}

.hero-copy {
  padding: 38px 0 72px;
}

.hero h1 {
  margin: 10px 0 24px;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--gold-500);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.text-link {
  color: var(--green-950);
  text-decoration: none;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  padding-bottom: 64px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -38px;
  width: 22px;
  background: linear-gradient(var(--gold-200), var(--gold-500));
  transform: skew(-16deg);
}

.hero-photo {
  display: grid;
  place-items: center;
  min-height: 120px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(6, 47, 41, 0.84), rgba(17, 72, 62, 0.56)),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.10) 0 7px,
      transparent 7px 21px
    );
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.hero-photo small {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-photo-large {
  min-height: 350px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 7px;
}

.hero-signature {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
}

.hero-signature strong {
  color: var(--green-950);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.hero-signature span {
  color: var(--muted);
  font-size: 0.9rem;
}


/* ---------- VÝHODY ---------- */
.benefits {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

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

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 26px 24px;
}

.benefit + .benefit {
  border-left: 1px solid var(--border);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-500);
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  font-weight: 900;
}

.benefit strong,
.benefit span {
  display: block;
}

.benefit strong {
  color: var(--green-950);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.benefit span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}


/* ---------- SLUŽBY ---------- */
.services-section {
  background: var(--cream-100);
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(14, 40, 34, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.service-media {
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.86);
  background-color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.media-shading {
  background:
    linear-gradient(rgba(6,47,41,.44), rgba(6,47,41,.44)),
    repeating-linear-gradient(0deg, #284f47 0 10px, #c8af78 10px 17px);
}

.media-window {
  background:
    linear-gradient(90deg, rgba(255,255,255,.78) 0 12%, transparent 12% 88%, rgba(255,255,255,.78) 88%),
    linear-gradient(145deg, #9cb2ab, #17493e);
}

.media-film {
  background:
    linear-gradient(135deg, rgba(201,163,83,.22), rgba(6,47,41,.45)),
    linear-gradient(90deg, #c5d6d2 0 38%, #44665f 38% 41%, #88a39d 41%);
}

.media-repair {
  background:
    linear-gradient(120deg, rgba(255,255,255,.8), rgba(255,255,255,.2)),
    linear-gradient(90deg, #d4d8d4 0 49%, #56766e 49% 52%, #edf0ed 52%);
  color: var(--green-950);
}

.media-windshield {
  background:
    radial-gradient(circle at 62% 44%, rgba(255,255,255,.98) 0 2px, transparent 3px),
    linear-gradient(145deg, #69837e, #162f2b);
}

.media-anchor {
  background:
    radial-gradient(circle at 72% 48%, #c6c9c2 0 8%, transparent 8.5%),
    linear-gradient(90deg, #838983 0 62%, #3f4d49 62%);
}

.service-body {
  position: relative;
  padding: 26px;
}

.service-number {
  position: absolute;
  top: -23px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 13px 0 14px;
  color: var(--green-950);
  font-size: 1.24rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card a {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  color: var(--gold-500);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}


/* ---------- CTA ---------- */
.cta-strip {
  overflow: hidden;
  position: relative;
  color: var(--white);
  background: var(--green-950);
}

.cta-strip::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -20px;
  width: 250px;
  height: 180%;
  background:
    linear-gradient(130deg, transparent 0 34%, var(--gold-500) 35% 39%, transparent 40% 49%, #25554b 50% 64%, transparent 65%);
  opacity: 0.45;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.3fr auto;
  align-items: center;
  gap: 40px;
  min-height: 170px;
}

.cta-title {
  display: grid;
  color: var(--cream-100);
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.cta-title strong {
  color: var(--gold-400);
  font-size: 2rem;
}

.cta-points {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-points li::before {
  content: "✓";
  margin-right: 12px;
  color: var(--gold-400);
  font-weight: 900;
}


/* ---------- REALIZACE ---------- */
.realizace-section {
  background: var(--white);
}

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

.gallery-item {
  display: grid;
  place-items: center;
  min-height: 185px;
  padding: 16px;
  color: rgba(255,255,255,.88);
  background:
    linear-gradient(145deg, rgba(6,47,41,.34), rgba(6,47,41,.74)),
    repeating-linear-gradient(90deg, #b3c1bc 0 24px, #d9c9a3 24px 37px);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.gallery-more {
  color: var(--green-950);
  border: 1px solid var(--gold-500);
  background: var(--cream-100);
}


/* ---------- KONTAKT ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background: var(--cream-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.8fr;
  align-items: stretch;
  gap: 44px;
}

.contact-info address {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  font-style: normal;
}

.contact-info address a,
.contact-info address div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--green-950);
  text-decoration: none;
  font-weight: 650;
}

.contact-info address span {
  color: var(--gold-500);
}

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

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: var(--green-950);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(17, 72, 62, 0.14);
  border-radius: 2px;
  outline: none;
  background: rgba(255,255,255,.82);
  padding: 13px 14px;
  color: var(--text);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 163, 83, 0.16);
}

.form-row textarea {
  resize: vertical;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-consent input {
  margin-top: 4px;
  accent-color: var(--green-950);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 5px;
}

.contact-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 40px 28px;
  color: var(--white);
  background:
    linear-gradient(rgba(6,47,41,.26), rgba(6,47,41,.58)),
    repeating-linear-gradient(
      0deg,
      #b6985c 0 11px,
      #f0d99e 11px 18px,
      #36584f 18px 34px
    );
}

.contact-visual::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -15%;
  width: 18px;
  height: 130%;
  background: var(--gold-400);
  transform: skew(-15deg);
}

.contact-visual div {
  display: grid;
  transform: rotate(-5deg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}


/* ---------- PATIČKA ---------- */
.site-footer {
  padding: 42px 0;
  color: rgba(255,255,255,.84);
  background: var(--green-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
}

.footer-brand .brand-text strong,
.footer-brand .brand-text small {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.copyright {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: right;
  font-size: 0.76rem;
}


/* =========================================================
   RESPONSIVITA
   ========================================================= */

/* ---------- TABLET ---------- */
@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 16px;
  }

  .header-phone {
    justify-self: end;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-copy {
    padding-bottom: 36px;
  }

  .hero-visual {
    max-width: 760px;
  }

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

  .benefit:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .benefit:nth-child(4) {
    border-top: 1px solid var(--border);
  }

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

  .cta-inner {
    grid-template-columns: 1fr 1.2fr;
    padding: 34px 0;
  }

  .cta-inner .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

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

  .contact-visual {
    grid-column: 1 / -1;
    min-height: 260px;
  }
}


/* ---------- MOBIL ---------- */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 118px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 14px 0;
  }

  .brand {
    justify-self: center;
  }

  .header-phone {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .main-nav {
    order: 2;
    grid-column: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px 22px;
    padding-bottom: 0;
  }

  .hero {
    padding-top: 28px;
  }

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

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-photo-large {
    min-height: 255px;
  }

  .hero-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .benefit + .benefit,
  .benefit:nth-child(3),
  .benefit:nth-child(4) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .service-media {
    min-height: 175px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-inner .btn {
    grid-column: auto;
    width: 100%;
  }

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

  .gallery-item {
    min-height: 145px;
  }

  .contact-section {
    padding: 72px 0;
  }

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

  .contact-form .btn {
    width: 100%;
  }

  .contact-visual {
    grid-column: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
    text-align: left;
  }
}


/* ---------- VELMI MALÝ MOBIL ---------- */
@media (max-width: 420px) {
  .brand-mark {
    width: 40px;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .main-nav {
    font-size: 0.86rem;
  }

  .hero-photo-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 90px;
  }

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


/* ---------- OMEZENÍ ANIMACÍ ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* =========================================================
   SKUTEČNÉ OBRÁZKY SLUŽEB
   ========================================================= */
.service-media {
  display: block;
  min-height: 0;
  padding: 0;
  background: none;
}

.service-media img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 680px) {
  .service-media img {
    height: 205px;
  }
}


/* ---------- ANTISPAM: SKRYTÉ POLE PRO BOTY ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
