/*
 * Shared stylesheet for the Zdrowa Sfera landing pages.
 *
 * The palette was chosen to reflect vitality and wellbeing while still
 * feeling professional. Headings use the Poppins typeface for a clean
 * modern look and body copy falls back to Open Sans for readability.
 *
 * Throughout the layout you will notice generous whitespace, soft
 * rounded corners and subtle shadows. These details help content
 * breathe and mirror the friendly tone of our brand.
 */

@import url('https://fonts.bunny.net/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  /* core colours */
  --primary: #045d56;
  --secondary: #0a7e6a;
  --accent: #e86a2e;
  --bg-light: #faf9f6;
  --bg-muted: #f1f0ed;
  --text-main: #133c33;
  --text-light: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  /* sizing */
  --max-width: 1100px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

/* Header */
.site-header {
  background: var(--primary);
  color: var(--text-light);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
}

/* Hero section */
.hero {
  position: relative;
  background: linear-gradient(rgba(4, 93, 86, 0.8), rgba(4, 93, 86, 0.8)), url('uploads/hero.jpg') no-repeat center/cover;
  color: var(--text-light);
  padding: 6rem 1rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.hero .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

/* Slightly darker accent on hover */
.btn-primary:hover {
  background: #cf5b28;
}

.btn-outline {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

 .btn-outline:hover {
  background: var(--text-light);
  color: var(--primary);
 }

/* Sections */
section {
  padding: 4rem 1rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.two-column .image {
  flex: 1 1 45%;
}

.two-column .image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.two-column .content {
  flex: 1 1 50%;
}

.two-column .content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.two-column .content p {
  margin-bottom: 1rem;
}

.two-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.two-column ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.two-column ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* Cards for steps and for targeted users */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card-number {
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  background: var(--accent);
  color: var(--text-light);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 3rem;
}

.timeline-item::before {
  content: attr(data-number);
  position: absolute;
  left: -2rem;
  top: 0;
  background: var(--accent);
  color: var(--text-light);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.timeline-item h4 {
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* CTA section */
.cta {
  position: relative;
  background: linear-gradient(rgba(4, 93, 86, 0.85), rgba(4, 93, 86, 0.85)), url('uploads/mealprep.jpg') no-repeat center/cover;
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
}

.cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 1rem;
  position: relative;
}

.footer-brand {
  flex: 0 0 80px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-brand .vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--accent);
}

.footer-content {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-block h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block li {
  margin-bottom: 0.5rem;
}

.footer-block a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-contact p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.newsletter {
  margin-top: 1rem;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter input[type="email"] {
  flex: 1 1 200px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: none;
  outline: none;
}

.newsletter button {
  background: var(--accent);
  border: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter button:hover {
  background: #cf5b28;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
}

.cookie-banner p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner .accept {
  background: var(--primary);
  color: var(--text-light);
}

.cookie-banner .decline {
  background: var(--bg-muted);
  color: var(--primary);
}

/* Contact forms */
.form-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.form-section {
  flex: 1 1 300px;
}

.contact-form {
  background: var(--bg-muted);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-form button {
  background: var(--accent);
  border: none;
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #cf5b28;
}

/* Success message page */
.thankyou {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-muted);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thankyou h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.thankyou p {
  margin-bottom: 1.5rem;
}

.thankyou .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Media queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-brand {
    margin-bottom: 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
  }
}
