/*
Theme Name: Tetiana
Description: Tetiana Komchenko nutrition site
Version: 2.0
*/

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

:root {
  --cream: #fdf8f2;
  --beige: #f5ede0;
  --brown: #8b5e3c;
  --dark: #2c1a0e;
  --text: #3d2b1f;
  --accent: #c8956c;
  --light-text: #7a6358;
  --white: #ffffff;
  --border: #e8ddd4;
}

html { scroll-behavior: smooth; }
body { font-family: 'Georgia', serif; background: var(--cream); color: var(--text); line-height: 1.7; font-size: 16px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: 'Georgia', serif; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section--beige { background: var(--beige); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

/* HEADER / NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 1.1rem; font-weight: bold; color: var(--dark); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.95rem; color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 8px 20px; border-radius: 4px; font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brown) !important; }
.nav-social { display: flex; gap: 12px; align-items: center; }
.nav-social a img { width: 22px; height: 22px; }

/* HERO */
.hero {
  background: var(--beige);
  padding: 80px 24px 60px;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-tag { font-size: 0.9rem; color: var(--light-text); margin-bottom: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.hero h1 { margin-bottom: 20px; }
.hero-desc { color: var(--light-text); font-size: 1.05rem; margin-bottom: 28px; }
.hero-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.hero-img img { width: 100%; height: 480px; object-fit: cover; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); border: none; }
.btn-primary:hover { background: var(--brown); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* WORKS WITH */
.works-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.works-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
}
.works-card h3 { font-size: 1rem; color: var(--brown); margin-bottom: 10px; }
.works-card ul { list-style: none; }
.works-card ul li { font-size: 0.88rem; color: var(--light-text); padding: 3px 0; }
.works-card ul li::before { content: "• "; color: var(--accent); }

/* PROGRAMS */
.programs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.program-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.program-card-img { height: 200px; overflow: hidden; }
.program-card-img img { width: 100%; height: 100%; object-fit: cover; }
.program-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.program-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.program-card h3 { margin-bottom: 10px; }
.program-card p { font-size: 0.9rem; color: var(--light-text); flex: 1; }
.program-card-footer { padding: 0 24px 24px; }
.program-price { font-size: 1.1rem; font-weight: bold; color: var(--brown); margin-bottom: 12px; }

/* PROGRAMS GROUP HEADINGS */
.programs-group { margin-bottom: 40px; }
.programs-group-title { font-size: 1rem; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 32px;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.testimonial-card img { width: 100%; height: 260px; object-fit: cover; }

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 1rem; font-weight: bold; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.faq-a { font-size: 0.95rem; color: var(--light-text); margin-top: 12px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q::after { content: "−"; }

/* CONTACT FORM */
.contact-form { max-width: 520px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--light-text); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-family: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--text);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { min-height: 100px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--light-text); margin-bottom: 20px; }

/* FOOTER */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; opacity: 0.7; margin-top: 12px; }
.footer-nav h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { font-size: 0.88rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-nav ul li a:hover { opacity: 1; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 0.2s; }
.footer-social a:hover img { opacity: 1; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.5; }
.footer-address { font-size: 0.85rem; opacity: 0.7; margin-top: 8px; }

/* HERO-PAGE (program pages) */
.page-hero {
  background: var(--beige); padding: 60px 24px 40px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .subtitle { font-size: 1.1rem; color: var(--light-text); max-width: 680px; margin: 0 auto; }
.page-hero-img { max-width: 600px; margin: 32px auto 0; border-radius: 10px; overflow: hidden; }
.page-hero-img img { width: 100%; height: 320px; object-fit: cover; }

/* CONTENT LISTS */
.content-list { list-style: none; margin: 16px 0; }
.content-list li { padding: 6px 0 6px 20px; position: relative; font-size: 0.95rem; color: var(--text); }
.content-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* INCLUDES grid */
.includes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 24px;
}
.include-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
}
.include-item h4 { font-size: 0.95rem; color: var(--brown); margin-bottom: 6px; }
.include-item p { font-size: 0.88rem; color: var(--light-text); margin: 0; }

/* PRICE BOX */
.price-box {
  background: var(--beige); border: 2px solid var(--accent);
  border-radius: 12px; padding: 32px; max-width: 480px; margin: 40px auto;
  text-align: center;
}
.price-box h2 { margin-bottom: 8px; }
.price-amount { font-size: 2rem; font-weight: bold; color: var(--accent); margin: 12px 0 20px; }
.price-box .btn { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }

/* TELEGRAM CTA */
.tg-cta-box {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; margin-top: 32px;
}
.tg-cta-box h2 { font-size: 1.2rem; margin-bottom: 8px; }
.tg-cta-box p { color: var(--light-text); font-size: 0.9rem; margin-bottom: 16px; }
.tg-cta-links { display: flex; gap: 12px; flex-wrap: wrap; }
.tg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 4px; font-size: 0.9rem; }
.tg-btn-tg { background: #229ED9; color: var(--white); }
.tg-btn-ig { background: #E1306C; color: var(--white); }
.tg-btn-tg:hover { background: #1a7db0; }
.tg-btn-ig:hover { background: #b02455; }

/* SECTION HEADING */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { color: var(--light-text); font-size: 1rem; max-width: 640px; margin: 0 auto; }

/* ABOUT BLOCK */
.about-inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.about-img { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-text .stat-row { display: flex; gap: 32px; margin-top: 24px; }
.about-text .stat { text-align: center; }
.about-text .stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.about-text .stat span { font-size: 0.85rem; color: var(--light-text); }

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { height: 280px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}
