/* ═══════════════════════════════════════════════════
   AllCorr.eu — Celestial Elegance Theme
   Granat + Złoto | Playfair Display + Source Sans 3
   ═══════════════════════════════════════════════════ */

/* --- ZMIENNE KOLORÓW (edytuj tutaj, żeby zmienić cały motyw) --- */
:root {
  --navy-dark: #0a0e27;
  --navy: #0f1535;
  --navy-light: #151b42;
  --navy-card: #111738;
  --gold: #d4a843;
  --gold-light: #e8c96a;
  --gold-dim: #b8922e;
  --text-light: #e2e0dc;
  --text-muted: #9a98a6;
  --white: #ffffff;
  --border-subtle: rgba(212, 168, 67, 0.15);
  --shadow-gold: rgba(212, 168, 67, 0.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- GWIAZDY W TLE --- */
.stars-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.star {
  position: absolute; border-radius: 50%; background: var(--white);
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: var(--max-opacity, 0.7); transform: scale(1.2); }
}

/* --- NAWIGACJA --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 14, 39, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.nav-brand img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-family: var(--font-accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark) !important; padding: 0.5rem 1.25rem;
  border-radius: 6px; font-weight: 700 !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--shadow-gold); }
.hamburger {
  display: none; background: none; border: none; color: var(--gold);
  cursor: pointer; padding: 0.5rem;
}

/* --- HERO --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; z-index: 1;
  padding: 120px 1.5rem 80px;
}
.hero-content { max-width: 800px; }
.hero-logo { max-width: 320px; margin: 0 auto 2rem; filter: drop-shadow(0 0 30px rgba(212,168,67,0.3)); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 0.5rem; }
.hero h1 .gold { color: var(--gold); }
.hero .subtitle { font-family: var(--font-accent); font-size: 1.1rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero .description { font-size: 1.15rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-cta {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark); padding: 1rem 2.5rem; border-radius: 8px;
  font-family: var(--font-accent); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--shadow-gold); color: var(--navy-dark); }

/* --- ZŁOTY SEPARATOR --- */
.gold-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 1rem 0;
}
.gold-divider .line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gold-divider .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* --- SEKCJE --- */
section { position: relative; z-index: 1; padding: 5rem 0; }
section.dark { background: var(--navy); }
.section-label {
  font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); margin-bottom: 1rem;
}
.section-title em { color: var(--gold); font-style: italic; }

/* --- O NAS (krótka sekcja) --- */
.about-brief { max-width: 800px; margin: 0 auto; text-align: center; }
.about-brief p { font-size: 1.1rem; line-height: 1.9; color: var(--text-light); margin-bottom: 1.5rem; }
.about-values { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.about-value { text-align: center; }
.about-value .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.about-value .label { font-family: var(--font-accent); font-size: 0.85rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- KAFELKI (TILES) --- */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.tile {
  position: relative; background: var(--navy-card);
  border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 2.5rem 2rem; overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer; text-decoration: none; display: block; color: var(--text-light);
}
.tile::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.2), 0 4px 15px rgba(0,0,0,0.3);
  border-color: var(--gold-dim);
}
.tile:hover::before { transform: scaleX(1); }
.tile-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.tile-title {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--white);
  margin-bottom: 0.75rem; transition: color 0.3s;
}
.tile:hover .tile-title { color: var(--gold); }
.tile-short {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  max-height: 3.2em; overflow: hidden;
}
.tile-long {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.7;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.tile:hover .tile-short { max-height: 0; opacity: 0; }
.tile:hover .tile-long { max-height: 200px; opacity: 1; margin-top: 0.75rem; }
.tile-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-family: var(--font-accent); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 1.25rem; transition: gap 0.3s;
}
.tile:hover .tile-arrow { gap: 1rem; }

/* --- FORMULARZ KONTAKTOWY --- */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .ci-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; margin-top: 0.2rem; }
.contact-item .ci-label { font-family: var(--font-accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-item .ci-value { color: var(--white); font-size: 1rem; }
.contact-item .ci-value a { color: var(--gold); }
.contact-form { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-family: var(--font-accent); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem; background: var(--navy-dark);
  border: 1px solid var(--border-subtle); border-radius: 8px;
  color: var(--white); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--navy-dark); color: var(--white); }
.honeypot { position: absolute; left: -9999px; }
.form-submit {
  width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark); border: none; border-radius: 8px;
  font-family: var(--font-accent); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--shadow-gold); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-message { margin-top: 1rem; padding: 1rem; border-radius: 8px; text-align: center; display: none; }
.form-message.success { display: block; background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.form-message.error { display: block; background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- STOPKA --- */
footer {
  background: var(--navy); border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.footer-heading { font-family: var(--font-accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); transition: color 0.3s; }
.footer-social a:hover { color: var(--gold); }

/* --- SCROLL TO TOP --- */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px var(--shadow-gold);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* --- ANIMACJE SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: rgba(10,14,39,0.98); flex-direction: column; padding: 2rem; gap: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero-logo { max-width: 220px; }
  .tiles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-values { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 1rem 60px; }
  .hero h1 { font-size: 1.7rem; }
  section { padding: 3rem 0; }
  .tile { padding: 2rem 1.5rem; }
  .contact-form { padding: 1.5rem; }
}
