/* =============================================
   KATARZYNA TENNOU – DIETETYK/DIET COACH
   style.css – mobile-first, responsive
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --green-primary:  #6ab83c;
  --green-dark:     #4a7c28;
  --green-bright:   #78c442;
  --green-darker:   #3a6020;
  --charcoal:       #333333;
  --text-dark:      #2d2d2d;
  --text-mid:       #555555;
  --white:          #ffffff;
  --gray-light:     #f4f4f4;
  --header-height:  80px;
  --phone-bar-h:    48px;
  --transition:     0.3s ease;
  --shadow:         0 4px 20px rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(160,160,160,0.97);
  backdrop-filter: blur(4px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 75px;
  width: 170px;
  object-fit: fill;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: space-evenly;
}

.nav-links li {
  position: relative;
}

/* vertical separator between items */
.nav-links li + li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: #ccc;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-links a.active {
  color: var(--green-bright);
  border-bottom: 3px solid var(--green-bright);
  padding-bottom: 6px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  margin-left: auto;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =============================================
   PHONE BAR
   ============================================= */
.phone-bar {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  height: var(--phone-bar-h);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.btn-call {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 32px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
}
.btn-call:hover {
  background: var(--green-dark);
  transform: scale(1.03);
}

.phone-reveal {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: max-width 0.4s ease, opacity 0.35s ease, margin-left 0.4s ease;
  margin-left: 0;
}
.phone-reveal.visible {
  max-width: 220px;
  opacity: 1;
  margin-left: 16px;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  margin-top: calc(var(--header-height) + var(--phone-bar-h));
  overflow: hidden;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--green-dark); /* fallback before image loads */
  transition: transform 10s ease;
}
.slide.active .slide-bg {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.slide-content {
  position: absolute;
  bottom: 120px;
  left: 40px;
  right: 40px;
  max-width: 900px;
  color: var(--white);
  z-index: 2;
}

.slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.slide-text {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 28px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--green-primary);
  transform: scale(1.2);
}

/* =============================================
   SHARED BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,124,40,0.4);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 28px;
  border: 2px solid var(--white);
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green-primary);
}

.section-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 2px;
  background: var(--white);
}
.section-label.light { color: var(--white); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  top: -40%;
  left: 0;
  right: 0;
  bottom: -40%;
  background-size: cover;
  background-position: center;
  background-color: #556;
  will-change: transform;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  color: var(--white);
}

.about-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  margin-top: 24px;
}

.about-center p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-center p:last-child { margin-bottom: 0; }

.about-card {
  background: var(--green-primary);
  padding: 28px 24px;
  border-radius: 6px;
}
.about-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-divider {
  height: 2px;
  background: var(--white);
  margin-bottom: 16px;
  width: 100%;
}
.about-card p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: var(--green-dark);
  padding: 70px 20px;
  text-align: center;
  color: var(--white);
}

.stats-inner { max-width: 960px; margin: 0 auto; }

.stats-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.stats-subtitle {
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 50px;
  opacity: 0.92;
}

.stats-circles {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item { flex: 0 0 auto; }

.stat-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--green-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 0 8px rgba(120,196,66,0.25);
}

.stat-circle svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  margin-bottom: 4px;
}

.stat-circle strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-circle span {
  font-size: 0.8rem;
  opacity: 0.9;
  text-align: center;
  padding: 0 12px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
  background: var(--green-bright);
  padding: 70px 20px;
  color: var(--white);
  text-align: center;
}

.features-inner { max-width: 1100px; margin: 0 auto; }

.features-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.features-divider {
  height: 2px;
  background: var(--white);
  width: 200px;
  margin: 0 auto 50px;
}

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

.feature-card {
  border: 2px dashed rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.feature-card:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* =============================================
   OFFER SECTION
   ============================================= */
.offer-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  min-height: 600px;
}

.offer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #445; /* fallback */
}

.offer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.offer-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.offer-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.offer-card:hover { transform: translateY(-6px); }

.offer-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--green-dark); /* fallback */
}

.offer-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.82) 100%
  );
}

.offer-card-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  color: var(--white);
}
.offer-card-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.offer-card-content p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.92;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { height: 70px; width: auto; object-fit: contain; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-primary);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 6px;
}

.footer-col a { color: inherit; opacity: 0.85; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--green-primary); }

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.88rem;
  opacity: 0.85;
  transition: all var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--green-primary); padding-left: 4px; }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 40px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  opacity: 0.6;
}

/* =============================================
   FIXED SOCIAL BUTTONS
   ============================================= */
.social-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-end;
}

.social-btn {
  width: 43px;
  height: 43px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: -2px 2px 8px rgba(0,0,0,.25);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-origin: right center;
}
.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.social-btn:hover {
  transform: scale(1.15);
  box-shadow: -4px 4px 14px rgba(0,0,0,.35);
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(30, 30, 30, 0.97);
  color: var(--white);
  z-index: 9999;
  padding: 16px 24px;
  transform: translateY(0);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.hidden { transform: translateY(110%); }

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.cookie-content a { color: var(--green-primary); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--green-primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--green-dark); }

.btn-cookie-decline {
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--white); }

/* =============================================
   RESPONSIVE – TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .nav-links a { padding: 6px 10px; font-size: 0.72rem; }

  .about-inner { grid-template-columns: 1fr 1.5fr 1fr; gap: 24px; padding: 0 24px; }

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

  .offer-cards { gap: 16px; }
  .offer-card { min-height: 400px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo-col { grid-column: 1 / -1; }
}

/* =============================================
   RESPONSIVE – MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --phone-bar-h: 44px;
  }

  /* Nav mobile */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: calc(var(--header-height) + var(--phone-bar-h));
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
  }
  .nav-links.open {
    max-height: 600px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .nav-links li + li::before { display: none; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-light);
  }
  .nav-links a.active { border-bottom: 1px solid var(--gray-light); border-left: 4px solid var(--green-primary); background: rgba(106,184,60,0.08); }

  /* Hero */
  .hero { height: calc(100svh - var(--header-height) - var(--phone-bar-h)); min-height: 420px; }
  .slide-content { left: 20px; right: 20px; bottom: 80px; }
  .slide-title { letter-spacing: 0.04em; }
  .slide-text { font-size: 0.85rem; }
  .slider-dots { bottom: 28px; }

  /* About */
  .about-section { padding: 50px 0; }
  .about-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 28px;
  }
  .about-title { font-size: 1.4rem; }

  /* Stats */
  .stats-section { padding: 50px 20px; }
  .stats-circles { gap: 24px; }
  .stat-circle { width: 150px; height: 150px; }
  .stat-circle strong { font-size: 1.8rem; }

  /* Features */
  .features-section { padding: 50px 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card { padding: 24px 14px; }

  /* Offer */
  .offer-section { padding: 50px 0; }
  .offer-inner { padding: 0 20px; }
  .offer-cards { grid-template-columns: 1fr; gap: 20px; }
  .offer-card { min-height: 340px; }

  /* Footer */
  .site-footer { padding: 40px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .footer-logo-col { display: none; }
  .footer-bottom { padding: 16px 20px; }

  /* Social */
  .social-fixed { display: none; }

  /* Cookie */
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-buttons { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; }
}

/* =============================================
   RESPONSIVE – SMALL MOBILE (max 400px)
   ============================================= */
@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
  .stat-circle { width: 130px; height: 130px; }
  .stat-circle strong { font-size: 1.6rem; }
}
