/* ============================================
   Język Polski — Stylesheet
   Classic, warm design for Polish language classes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --red: #DC143C;
  --red-dark: #B01030;
  --red-light: #FDF2F4;
  --white: #FFFFFF;
  --cream: #FFF9F5;
  --warm-grey: #F5F0EB;
  --text-dark: #2D2A26;
  --text-medium: #5A5650;
  --text-light: #8A8580;
  --border: #E5DDD5;
  --shadow: rgba(45, 42, 38, 0.08);
  --shadow-lg: rgba(45, 42, 38, 0.12);
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-medium); }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.site-logo span {
  color: var(--red);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  order: 2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Language Toggle & Header Right */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
  order: 3;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-toggle button {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.lang-toggle button:hover {
  opacity: 0.8;
}

.lang-toggle button.active {
  opacity: 1;
  border-color: var(--red);
}

.lang-toggle button img {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #000;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--red-light) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--red);
}

.hero .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ---- SECTIONS ---- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s;
}

.section-alt .feature-card {
  background: var(--cream);
}

.feature-card:hover {
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
}

.info-card h3 {
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-medium);
}

.info-detail .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Price highlight */
.price-highlight {
  background: var(--red-light);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.price-highlight .price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
}

.price-highlight .price-label {
  color: var(--text-medium);
  font-size: 1.1rem;
}

/* ---- FORM ---- */
.form-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-submit .btn {
  min-width: 200px;
}

.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.form-message.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.form-message.show {
  display: block;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-heart {
  color: var(--red);
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-banner .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.cta-banner .btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

/* ---- PAGE HEADER (sub-pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--white) 0%, var(--red-light) 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 500px;
  margin: 0 auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 1.5rem;
  }

  .price-highlight .price {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
