/* ==========================================================================
   Zdrowe Stopy, Małgorzata Malinowska · Foot Health Practitioner
   ========================================================================== */

/* ----- Zmienne ----- */
:root {
  --green-deep:   #1E3D2F;
  --green-mid:    #2E5D45;
  --green-soft:   #E8EFE9;
  --beige:        #F5F0E6;
  --cream:        #FDFBF6;
  --gold:         #C9A24B;
  --text:         #2B2B28;
  --text-soft:    #5E5E58;
  --whatsapp:     #25D366;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container:    72rem;
  --radius:       0.75rem;
  --shadow:       0 2px 16px rgba(30, 61, 47, 0.08);
  --header-h:     4.25rem;
}

/* ----- Fonty (self-hosted, latin + latin-ext) ----- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--beige);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

ul[class],
ol[class] {
  list-style: none;
}

a {
  color: var(--green-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* ----- Typografia ----- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--green-deep);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

/* Ozdobna złota linia pod H2, oszczędny akcent */
.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 0.9rem auto 0;
  background: var(--gold);
}

/* ----- Przyciski ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

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

.btn-primary {
  background-color: var(--green-deep);
  color: var(--cream);
}

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

.btn-ghost {
  border: 1.5px solid var(--green-deep);
  color: var(--green-deep);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--green-mid);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1fb958;
}

/* ----- Pasek opinii Google (topbar) ----- */
.topbar {
  background-color: var(--green-deep);
  text-align: center;
  padding-block: 0.6rem;
  font-size: 0.85rem;
}

/* ----- Logo banner ----- */
.logo-banner {
  background-color: var(--cream);
  padding-block: 1rem;
  text-align: center;
}

.logo-banner .logo img {
  height: auto;
  max-height: 150px;
  width: auto;
  max-width: 500px;
}

.topbar a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar .stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: rgba(253, 251, 246, 0.97);
  border-bottom: 1px solid rgba(30, 61, 47, 0.08);
}

.site-header .container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--green-deep);
  font-weight: 600;
}

.logo-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

.logo img {
  height: auto;
  max-height: 150px;
  width: auto;
  max-width: 500px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--green-mid);
  border-bottom-color: var(--gold);
}

.lang-switch {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(30, 61, 47, 0.25);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--gold);
  color: var(--green-mid);
}

.header-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- Mobile: menu full-screen ----- */
@media (max-width: 52em) {
  .site-header .container {
    display: flex;
    justify-content: space-between;
  }

  .logo {
    justify-self: center;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 55;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .main-nav a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green-deep);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--beige) 100%);
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.hero-leaves {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: clamp(4.5rem, 10vw, 7.5rem);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy .lead {
  margin-top: 1.25rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-cta .btn-whatsapp {
  max-width: 30rem;
  text-align: left;
}

.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.hero-trust span {
  color: var(--gold);
  margin-inline: 0.35rem;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 52em) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ----- Sekcja 2: W czym pomagam ----- */
.section-intro {
  text-align: center;
  color: var(--text-soft);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.service-card {
  background-color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-block: 0.85rem 0.35rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--green-soft);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--green-mid);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Sekcja 3: Nie ignoruj sygnałów ----- */
.urgency {
  background-color: var(--green-deep);
}

.urgency-inner {
  max-width: 44rem;
  text-align: center;
}

.urgency .section-title {
  color: var(--cream);
}

.urgency p {
  color: var(--green-soft);
  margin-block: 1rem 2rem;
}

/* ----- Sekcja 4: Poznaj mnie ----- */
.about {
  background-color: var(--green-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about .section-title {
  text-align: left;
}

.about .section-title::after {
  margin-inline: 0;
}

.about-copy p {
  margin-block: 1rem;
}

.about-list {
  margin-block: 1.25rem;
}

.about-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--green-mid);
  border-bottom: 2px solid var(--green-mid);
  transform: rotate(-45deg);
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-badges li {
  background-color: var(--cream);
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
}

@media (max-width: 52em) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 18rem;
    margin-inline: auto;
  }
}

/* ----- Sekcja 5: Efekty ----- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.results-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Sekcja 6: Jak wygląda wizyta ----- */
.visit {
  background-color: var(--cream);
}

.visit-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
  list-style: none;
}

.visit-steps li {
  text-align: center;
  padding-inline: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--green-deep);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.visit-steps h3 {
  margin-bottom: 0.5rem;
}

.visit-steps p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ----- Sekcja 7: Cennik ----- */
.pricing-inner {
  max-width: 44rem;
  text-align: center;
}

.pricing-card {
  background-color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-block: 1rem 2rem;
}

.pricing-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.pricing-main strong {
  color: var(--green-mid);
}

.pricing-card p:last-child {
  color: var(--text-soft);
}

.pricing-cta {
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ----- Sekcja 8: FAQ ----- */
.faq {
  background-color: var(--green-soft);
}

.faq-inner {
  max-width: 44rem;
}

.faq .section-title {
  margin-bottom: 2rem;
}

.faq-item {
  background-color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-deep);
  padding: 1.1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-soft);
}

/* ----- Sekcja 9: Kontakt ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.contact-list li {
  margin-bottom: 1.25rem;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form {
  background-color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.contact-form input[type="text"],
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(30, 61, 47, 0.2);
  border-radius: 0.5rem;
  background-color: #fff;
  color: var(--text);
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-block: 1rem 1.25rem;
}

.consent input {
  margin-top: 0.3rem;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.5em;
  margin-top: 0.5rem;
}

.form-status.is-success {
  color: var(--green-mid);
}

.form-status.is-error {
  color: #a33;
}

@media (max-width: 52em) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Floating WhatsApp ----- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: #fff;
}

/* ----- Stopka ----- */
.site-footer {
  background-color: var(--green-deep);
  color: var(--green-soft);
  padding-block: 2.5rem 2rem;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--green-soft);
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand img {
  max-width: 450px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
}

.footer-brand span {
  display: block;
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-legal {
  color: var(--green-soft);
}

/* ----- Animacje (fade-up, respektuje prefers-reduced-motion) ----- */
.fade-up {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .whatsapp-float {
    transition: none;
  }
}

/* ----- Dostępność ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
