@import url('fonts.css');

/* Czcionki ładowane z fonts.css */

:root {
  --bg: #0a0a0a;
  --bg-alt: #1a1a1a;
  --primary: #c9a961;
  --primary-dark: #a88a4d;
  --accent: #d4c5a0;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --border-soft: #2a2a2a;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/tlo.png');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 3.8rem 0;
}

h1, h2, h3 {
  font-family: 'Cormorant', serif;
  color: var(--text);
  font-weight: 400;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
}

.logo-text {
  font-size: 0.95rem;
}

.main-nav ul {
  display: flex;
  gap: 1.7rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.3rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}


.page-hero {
  padding: 3.3rem 0 1.3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 2.6vw + 1.2rem, 2.4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}


.contact {
  min-height: 70vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-details p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.contact-details a {
  color: var(--primary-dark);
  font-weight: 600;
}

.social-list {
  list-style: none;
  margin-top: 0.6rem;
}

.social-list li + li {
  margin-top: 0.25rem;
}

.social-list a {
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.15rem;
  display: inline-block;
}

.social-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.social-list a:hover::after {
  width: 100%;
}

.contact-form-wrapper {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 1.8rem 1.6rem 1.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-form-wrapper p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: min(220px, 100%);
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 10, 10, 0.5);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212, 175, 55, 0.45);
  outline-offset: 1px;
  background: rgba(26, 26, 26, 0.7);
}

textarea {
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-field label {
  margin: 0;
}

.h-captcha {
  margin-top: 0.35rem;
}

.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0a0a0a;
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.05em;
}
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}


.site-footer {
  background: #000000;
  color: #f5f5f5;
  padding: 2.4rem 0 1.6rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: flex-start;
}

.footer-contact h3,
.footer-social h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--primary);
  font-weight: 300;
}

.footer-contact p,
.footer-social a {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.7);
}

.footer-social ul {
  list-style: none;
}

.footer-social li + li {
  margin-top: 0.25rem;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.5);
  align-self: flex-end;
}

.footer-copy .footer-author {
  font-size: 0.75rem;
  margin-left: 0.75rem;
  color: rgba(245, 245, 245, 0.6);
}

/* Komunikaty formularza */
#statusMessage {
  margin-bottom: 1.5rem;
}

#statusMessage .message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: slideInDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#statusMessage .message.success {
  background: linear-gradient(135deg, #1a4d2e 0%, #2d6a4f 100%);
  border-left: 4px solid #52b788;
  color: #d8f3dc;
}

#statusMessage .message.error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-left: 4px solid #ef4444;
  color: #fecaca;
}

/* Dodatkowe style dla przycisku podczas wysyłania */
.btn.primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Mapa Google */
.contact-map h3 {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.contact-map iframe {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}


@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, 100% - 2rem);
  }

  .header-inner {
    padding: 0.7rem 0;
  }

  .main-nav {
    position: absolute;
    inset: 62px 0 auto;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.8rem 1.5rem 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .contact-form-wrapper {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
