/* ==========================================================================
   FOTORYGO — Bezpłatna konsultacja (Free consultation) page
   Standalone, light-themed stylesheet. Reuses the brand palette and type.
   ========================================================================== */

@font-face {
  font-family: 'Gloock';
  src: url('Fonty/Gloock/Gloock-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('Fonty/Jost/Jost-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff5b00;
  --orange-deep: #d94300;
  --black: #0a0a0a;
  --ink: #0d0d0d;
  --white: #ffffff;
  --line: #c9c9c9;
  --muted: #8a8a8a;
  --grad-orange: linear-gradient(135deg, #F06F1C 12%, #ED3D10 50%, #CF2E05 92%);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
/* matches the header container width so content can align with the logo */
.shell--wide { max-width: 1600px; }

/* Reusable button ------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 38px;
  border: 1px solid var(--black);
  color: var(--white);
  background: var(--black);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.btn--small { padding: 13px 30px; font-size: 11px; letter-spacing: 0.3em; }

/* ==========================================================================
   HEADER / NAV  (light theme)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.10); }

/* wider header container so full-size elements fit */
.site-header .shell { max-width: 1600px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
}

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img {
  width: 325px;
  height: 85px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  font-family: 'Jost', sans-serif;
  font-size: 14.29px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.82);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--black);
  transition: width 0.3s ease;
}
.nav-menu a:hover,
.nav-menu a.is-active { color: var(--black); }
.nav-menu a:hover::after { width: 100%; }
.nav-cons-m { display: none; }   /* link Konsultacja: tylko w menu mobilnym (na desktopie jest przycisk CTA) */

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Black sharp CTA button, as in the mockup */
.nav-cta {
  width: 349px;
  height: 60px;
  padding: 0;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 14.29px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-1px); }

.nav-social { display: flex; align-items: center; gap: 8px; }
.nav-social a {
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-social a:hover { transform: translateY(-1px); background: var(--orange); }
.nav-social svg { width: 24px; height: 24px; }

.nav-toggle {
  display: none;
  width: 40px; height: 28px;
  background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--black); transition: 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* ==========================================================================
   CONSULTATION
   ========================================================================== */
.consult {
  flex: 1 0 auto;
  padding: 40px 0 30px;
}

/* Back link --------------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}
.back-icon {
  width: 70px; height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.back-icon svg { width: 26px; height: auto; }
.back-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.78);
}
.back-link:hover .back-icon { background: var(--black); color: var(--white); border-color: var(--black); }
.back-link:hover .back-text { color: var(--black); }

/* Intro ------------------------------------------------------------------- */
.consult-intro { text-align: center; max-width: 940px; margin: 26px auto 0; }
.consult-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 50px;
  line-height: 1.05;
  color: var(--orange);
  margin-bottom: 56px;
}
.consult-copy {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.65;
  color: rgba(0,0,0,0.82);
}
.consult-copy strong { font-weight: 700; color: var(--black); }

/* Form -------------------------------------------------------------------- */
.consult-form {
  max-width: 900px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
}
.field { position: relative; }
.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus { outline: none; border-bottom-color: var(--orange); }
.field input:focus::placeholder { color: var(--orange); }
.field input.is-invalid { border-bottom-color: var(--orange-deep); }

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.btn--send {
  min-width: 178px;
  padding: 20px 40px;
  text-align: center;
}
.btn--send:hover { background: transparent; border-color: var(--black); color: var(--black); transform: translateY(-2px); }

.form-status {
  grid-column: 1 / -1;
  text-align: center;
  min-height: 24px;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  margin-top: 6px;
}
.form-status.is-error { color: var(--orange-deep); }
.form-status.is-ok { color: #1f9d55; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  padding: 56px 0 30px;
  font-family: 'Jost', sans-serif;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  column-gap: 70px;
  align-items: start;
  margin-bottom: 40px;
}
.footer-logo { height: 46px; width: auto; filter: brightness(0) invert(1); }

.footer-col { list-style: none; }
.footer-menu li { margin-bottom: 12px; }
.footer-col a, .footer-col p {
  font-size: 17px;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--orange); }
.footer-data p { margin-bottom: 12px; }

.footer-contact h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-contact p { margin-bottom: 9px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 0;
  background: rgba(255,255,255,0.88);
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { background: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 22px;
  font-size: 17px;
  color: var(--white);
  font-weight: 300;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }           /* nie rozjeżdża się na bok na żadnym telefonie */
  .shell { padding: 0 22px; }
  .nav-menu, .nav-social { display: none; }
  .nav-toggle { display: block; }
  .nav-cons-m { display: block; }   /* Konsultacja widoczna w menu mobilnym */
  .nav { gap: 12px; }
  .nav-logo img { width: auto; max-width: 56vw; height: 54px; }   /* nagłówek mieści się w ekranie */
  .nav-cta { display: none; }                  /* CTA off na mobile, żeby pasek się mieścił */
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 104px; left: 0; right: 0;
    background: var(--white);
    padding: 26px 22px;
    gap: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  }
  .consult-title { font-size: clamp(39px, 5.5vw, 56px); }   /* nagłówek jak na Usługach */
  .consult-copy { font-size: 19px; line-height: 1.39; }     /* body text jak na Usługach */
  .consult-copy br { display: none; }
  .consult-form { grid-template-columns: 1fr; column-gap: 0; row-gap: 44px; margin-top: 60px; }
  /* pola formularza: napisy wyśrodkowane, font jak body text (Jost 400, 19px) */
  .field input { text-align: center; font-family: 'Jost', sans-serif; font-weight: 400; font-size: 19px; }
  /* footer jak na stronie Usługi (wyśrodkowany na mobile) */
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { text-align: center; }
}

@media (max-width: 520px) {
  .back-icon { width: 64px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 32px; }
}
