/*
Theme Name: MOC Studio
Theme URI: https://mocstudio.pl
Description: Motyw WordPress dla MOC Studio na Matecznym — Kraków
Author: MOC Studio
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: moc-studio
*/

/* =============================================
   ZMIENNE CSS (kolory, fonty, spacing)
============================================= */
:root {
  --moc-bg: #faf9f7;
  --moc-fg: #1a1a18;
  --moc-muted: #6b6b65;
  --moc-border: #e0ddd8;
  --moc-accent: #1a1a18;
  --moc-warm-dark: #1a1a18;
  --moc-secondary: #f0ede8;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--moc-bg);
  color: var(--moc-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* =============================================
   NAVBAR
============================================= */
#moc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--moc-border);
}

.moc-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.moc-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.moc-nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moc-fg);
  transition: opacity 0.2s;
}
.moc-nav-links a:hover { opacity: 0.5; }

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

.moc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.moc-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--moc-fg);
  transition: all 0.3s;
}

.moc-mobile-menu {
  display: none;
  background: var(--moc-bg);
  border-top: 1px solid var(--moc-border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}
.moc-mobile-menu a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.moc-mobile-menu.is-open { display: flex; }

@media (max-width: 768px) {
  .moc-nav-links { display: none; }
  .moc-hamburger { display: flex; }
}

/* =============================================
   HERO SECTION
============================================= */
#moc-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#moc-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moc-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 24, 0.35);
}

.moc-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 16px;
}

.moc-hero-content img {
  width: 256px;
  height: auto;
}

.moc-hero-tagline {
  color: #fff;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  font-family: var(--font-body);
}

.moc-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .moc-hero-content img { width: 384px; }
}

/* =============================================
   BUTTONS
============================================= */
.btn-zapisy {
  display: inline-block;
  background: var(--moc-fg);
  color: var(--moc-bg) !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--moc-fg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-zapisy:hover {
  background: transparent;
  color: var(--moc-fg) !important;
}

.btn-eventy {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-eventy:hover {
  background: rgba(255,255,255,0.15);
}

/* =============================================
   SECTION TITLES
============================================= */
.moc-section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--moc-fg);
}

/* =============================================
   MY SECTION (O nas)
============================================= */
#moc-my {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.moc-my-image {
  height: 50vh;
  overflow: hidden;
}
.moc-my-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moc-my-content {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.moc-my-content p {
  color: var(--moc-muted);
  font-size: 14px;
  line-height: 1.8;
  font-family: var(--font-body);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  #moc-my { flex-direction: row; }
  .moc-my-image { width: 50%; height: auto; }
  .moc-my-content { width: 50%; padding: 64px; }
}

/* =============================================
   TRENERZY SECTION
============================================= */
#moc-trenerzy {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.moc-trenerzy-image {
  height: 50vh;
  overflow: hidden;
  background: var(--moc-secondary);
  position: relative;
}
.moc-trenerzy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s;
}

.moc-trenerzy-content {
  padding: 48px 32px;
}

.moc-accordion-item {
  border-bottom: 1px solid var(--moc-fg);
}

.moc-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.moc-accordion-btn h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--moc-fg);
}

.moc-accordion-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--moc-fg);
  line-height: 1;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.moc-accordion-body {
  display: none;
  padding-bottom: 24px;
}
.moc-accordion-body.is-open { display: block; }

.moc-trainer-name {
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 6px;
}
.moc-trainer-desc {
  color: var(--moc-muted);
  font-size: 13px;
  line-height: 1.7;
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  #moc-trenerzy { flex-direction: row; }
  .moc-trenerzy-image { width: 50%; height: auto; }
  .moc-trenerzy-content { width: 50%; padding: 64px; }
}

/* =============================================
   EVENTY SECTION
============================================= */
#moc-eventy {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.moc-eventy-image {
  height: 50vh;
  overflow: hidden;
}
.moc-eventy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moc-eventy-content {
  padding: 48px 32px;
}

.moc-event-item {
  border-bottom: 1px solid var(--moc-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.moc-event-item:last-of-type { border-bottom: none; }

.moc-event-title {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}
.moc-event-date {
  color: var(--moc-muted);
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}
.moc-event-desc {
  color: var(--moc-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  #moc-eventy { flex-direction: row; }
  .moc-eventy-image { width: 50%; height: auto; }
  .moc-eventy-content { width: 50%; padding: 64px; }
}

/* =============================================
   GALERIA SECTION
============================================= */
#moc-galeria {
  padding: 64px 24px;
}

.moc-galeria-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.moc-galeria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.moc-galeria-item {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.moc-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.moc-galeria-item:hover img { transform: scale(1.05); }

@media (min-width: 768px) {
  .moc-galeria-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   KONTAKT SECTION
============================================= */
#moc-kontakt {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.moc-kontakt-image {
  height: 50vh;
  overflow: hidden;
}
.moc-kontakt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moc-kontakt-content {
  padding: 48px 32px;
}

.moc-kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.moc-kontakt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
}
.moc-kontakt-row svg { flex-shrink: 0; }
.moc-kontakt-row a:hover { text-decoration: underline; }

.moc-social-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.moc-social-links a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.moc-social-links a:hover { opacity: 0.6; }

.moc-map {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 32px;
}
.moc-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.moc-contact-form { display: flex; flex-direction: column; gap: 16px; }

.moc-contact-form h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-bottom: 4px;
}

.moc-contact-form input,
.moc-contact-form textarea {
  width: 100%;
  border: 1px solid var(--moc-border);
  background: var(--moc-bg);
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--moc-fg);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.moc-contact-form input:focus,
.moc-contact-form textarea:focus {
  border-color: var(--moc-fg);
}
.moc-contact-form input::placeholder,
.moc-contact-form textarea::placeholder { color: var(--moc-muted); }

@media (min-width: 768px) {
  #moc-kontakt { flex-direction: row; }
  .moc-kontakt-image { width: 50%; height: auto; }
  .moc-kontakt-content { width: 50%; padding: 64px; }
}

/* =============================================
   FOOTER
============================================= */
#moc-footer {
  border-top: 1px solid var(--moc-border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.moc-footer-links {
  display: flex;
  gap: 24px;
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--moc-muted);
  letter-spacing: 0.05em;
}

.moc-footer-email {
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--moc-muted);
}
.moc-footer-email:hover { text-decoration: underline; }

@media (min-width: 640px) {
  #moc-footer { flex-direction: row; justify-content: space-between; }
}

/* =============================================
   WORDPRESS ELEMENTOR — resetuje domyślne marginesy
============================================= */
.elementor-section, .e-container { padding-top: 0 !important; padding-bottom: 0 !important; }
.elementor-widget-wrap { padding: 0 !important; }
.site-header, .site-footer { display: none; }

/* padding-top żeby treść była pod fixed navbar */
body { padding-top: 73px; }
#moc-hero { margin-top: -73px; height: 100vh; }
