/* ============================================================
   ZÁHRADA V ŠKOLSKEJ POLIČKE — style.css
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --magenta:        #C0399C;
  --magenta-light:  #F0A8DC;
  --green-dark:     #2E6B2E;
  --green-mid:      #3B7A3B;
  --bg-cream:       #FAF4F8;
  --bg-dark:        #1A0A14;
  --text-dark:      #1A0A14;
  --text-muted:     #5A3D52;
  --white:          #FFFFFF;
  --border:         rgba(192,57,156,0.15);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-card: 16px;
  --shadow-card: 0 4px 24px rgba(192,57,156,0.08);
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-white { background: var(--white); }
.section-cream { background: var(--bg-cream); }
.section-dark  { background: var(--bg-dark); }
.section-magenta { background: var(--magenta); }

.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}
.btn-primary:hover {
  background: #a82f87;
  border-color: #a82f87;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,156,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--magenta);
  border-color: var(--magenta);
}
.btn-secondary:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--magenta);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--magenta-light);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-logo-placeholder .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--magenta);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-nav {
  background: var(--magenta) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
}
.btn-nav:hover {
  background: #a82f87 !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--magenta);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--magenta-light); }

.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--magenta-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192,57,156,0.2);
  border: 1px solid rgba(192,57,156,0.4);
  color: var(--magenta-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--magenta-light);
}

.hero-sub {
  color: rgba(255,255,255,0.7) !important;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-img-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
}

/* Short hero variant */
.hero-short {
  min-height: 420px;
  padding: 80px 0 60px;
}

.hero-short .hero-inner {
  display: block;
  padding: 0;
}

.hero-short h1 { color: var(--white); margin-bottom: 1rem; }
.hero-short p { color: rgba(255,255,255,0.7); max-width: 580px; }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 1.5rem;
}

.img-placeholder .ph-icon { font-size: 2rem; opacity: 0.7; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(192,57,156,0.14);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; }

/* Grid layouts */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
}

.school-chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
}

.school-chip:hover {
  border-color: var(--magenta);
  background: rgba(192,57,156,0.05);
}

/* ============================================================
   BANNERS / CTA SECTIONS
   ============================================================ */
.banner-magenta {
  background: var(--magenta);
  padding: 60px 0;
  text-align: center;
}

.banner-magenta h2,
.banner-magenta p {
  color: var(--white);
}

.banner-magenta p { opacity: 0.88; }

.banner-dark {
  background: var(--bg-dark);
  padding: 72px 0;
  text-align: center;
}

.banner-dark h2 { color: var(--white); margin-bottom: 1rem; }
.banner-dark p { color: rgba(255,255,255,0.65); }

/* ============================================================
   PARAMETERS TABLE
   ============================================================ */
.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.param-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.param-item .param-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.param-item .param-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================================
   GALLERY / LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item .img-placeholder {
  transition: transform var(--transition);
  border-radius: 12px;
}

.gallery-item:hover .img-placeholder {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 12px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: white;
  font-size: 2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img,
.lightbox-inner .img-placeholder {
  max-width: 80vw;
  max-height: 80vh;
  width: 640px;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

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

.contact-detail .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail a { color: var(--text-muted); transition: color var(--transition); }
.contact-detail a:hover { color: var(--magenta); }

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

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(192,57,156,0.12);
}

form textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: rgba(46,107,46,0.08);
  border: 1.5px solid rgba(46,107,46,0.3);
  color: var(--green-dark);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
}

/* ============================================================
   QUOTE / TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--magenta-light);
  line-height: 1;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.testimonial-school {
  font-size: 0.82rem;
  color: var(--magenta);
}

/* ============================================================
   TWO-COLUMN CONTENT SECTIONS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.value-tag {
  background: rgba(192,57,156,0.08);
  color: var(--magenta);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   SCHOOL CARDS (skoly.html)
   ============================================================ */
.school-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.school-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(192,57,156,0.14);
}

.school-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.school-card-body {
  padding: 1.25rem 1.5rem;
}

.school-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.school-card .school-city {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.school-type-badge {
  display: inline-block;
  background: rgba(192,57,156,0.08);
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ============================================================
   ANIMATE ON SCROLL
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   BOTANICAL PATTERN (decorative bg)
   ============================================================ */
.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23C0399C' fill-opacity='0.04'%3E%3Cellipse cx='40' cy='20' rx='5' ry='12' transform='rotate(-15 40 20)'/%3E%3Cellipse cx='20' cy='50' rx='4' ry='10' transform='rotate(20 20 50)'/%3E%3Cellipse cx='60' cy='55' rx='4' ry='10' transform='rotate(-25 60 55)'/%3E%3Ccircle cx='40' cy='35' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.pattern-bg > * { position: relative; z-index: 1; }

/* ============================================================
   STOJANA FORM (dark CTA form)
   ============================================================ */
.cta-form {
  max-width: 560px;
  margin: 2.5rem auto 0;
}

.cta-form input,
.cta-form textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(255,255,255,0.45); }

.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--magenta);
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 60px 0 40px;
  }
  .hero-visual { order: -1; }
  .hero-img-wrap { aspect-ratio: 16/9; max-height: 340px; }

  .cards-3,
  .cards-4,
  .testimonials-grid,
  .school-cards { grid-template-columns: 1fr; }

  .cards-2 { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }

  .contact-form-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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

/* ============================================================
   RESPONSIVE — SMALL TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .school-cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}
