/*
Theme Name: Centrum Medyczne MIŚ
Theme URI: https://centrummedyczne-staszow.pl
Author: LogoADS.pl
Author URI: https://logoads.pl
Description: Dedykowany motyw dla Centrum Medycznego MIŚ w Staszowie. Nowoczesny design medyczny z sekcjami: hero, gabinety, specjaliści, opinie i kontakt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cm-mis
*/

:root {
  --navy: #002D62;
  --navy-mid: #1a4a8d;
  --teal: #00A896;
  --teal-light: rgba(0, 168, 150, 0.12);
  --gold: #F0B429;
  --bg: #F8FAFB;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --border: rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 4px 16px rgba(0, 45, 98, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 45, 98, 0.13);
  --shadow-lg: 0 24px 64px rgba(0, 45, 98, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.cm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.cm-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 45, 98, 0.25);
  object-fit: contain;
}

img.logo-icon {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.logo-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(0, 45, 98, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 45, 98, 0.35);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: all 0.3s var(--ease);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(0, 20, 50, 0.88) 0%,
      rgba(0, 30, 70, 0.72) 45%,
      rgba(0, 20, 50, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  max-width: 680px;
  animation: fadeUp 0.9s var(--ease) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 150, 0.2);
  border: 1px solid rgba(0, 168, 150, 0.4);
  color: #4dd9cb;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.5)
  }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 58px);
  color: white;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: #4dd9cb;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 168, 150, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 168, 150, 0.5);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    transform: scaleY(1);
    transform-origin: top
  }

  51% {
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--navy);
  padding: 0;
  display: flex;
}

.stat-item {
  flex: 1;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── SECTIONS ─── */
.cm-section {
  padding: 96px 8%;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── O NAS ─── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.about-img-stack {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 20px 28px;
  box-shadow: var(--shadow-md);
  font-family: 'Playfair Display', serif;
}

.about-img-badge .big {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  display: block;
}

.about-img-badge .small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.feat {
  background: var(--bg);
  border-radius: 14px;
  padding: 22px 20px;
  border-left: 3px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.feat h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.feat p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ─── GABINETY ─── */
.gabinety {
  background: var(--bg);
}

.gabinety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gabinet-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}

.gabinet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.gabinet-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gabinet-card:hover .gabinet-img {
  transform: scale(1.04);
}

.gabinet-body {
  padding: 24px;
}

.gabinet-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gabinet-emoji {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.gabinet-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}

.gabinet-desc {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gabinet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  background: var(--teal-light);
  border-radius: 8px;
  padding: 7px 12px;
}

.gabinet-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── SPECJALIŚCI ─── */
.specjalisci {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.specjalisci::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.07;
}

.specjalisci .section-h2 {
  color: white;
}

.specjalisci .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.spec-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 18px 24px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.spec-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.spec-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.2), rgba(0, 45, 98, 0.4));
  border: 2px solid rgba(0, 168, 150, 0.35);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.spec-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  line-height: 1.35;
}

.spec-specialty {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
}

.spec-hours {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-block;
}

/* ─── CTA BANER ─── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #003580 50%, #0a4a8a 100%);
  padding: 72px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  color: white;
  line-height: 1.3;
  margin-bottom: 8px;
  position: relative;
}

.cta-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--teal);
  color: white;
  padding: 18px 36px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 168, 150, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 168, 150, 0.5);
}

/* ─── OPINIE ─── */
.opinie {
  background: var(--bg);
}

.opinie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.opinia {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.opinia:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.opinia::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 120px;
  color: var(--bg);
  line-height: 1;
  font-family: 'Playfair Display', serif;
  pointer-events: none;
}

.stars {
  color: var(--gold);
  font-size: 17px;
  margin-bottom: 16px;
}

.opinia-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.opinia-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opinia-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.opinia-author-name {
  font-weight: 600;
  font-size: 14px;
}

.opinia-source {
  font-size: 11px;
  color: var(--text-light);
}

/* ─── KONTAKT ─── */
.kontakt {
  background: var(--white);
}

.kontakt-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.kontakt-items {
  margin-top: 40px;
}

.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.kontakt-item:last-child {
  border-bottom: none;
}

.kontakt-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kontakt-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.kontakt-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.kontakt-value a {
  color: var(--navy);
  text-decoration: none;
}

.kontakt-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 480px;
  background: var(--bg);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── FOOTER ─── */
.cm-footer {
  background: #001530;
  padding: 48px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  object-fit: contain;
}

img.footer-icon {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.footer-brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-social:hover {
  background: var(--teal);
  color: white;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .gabinety-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 900px) {

  .about-wrap,
  .kontakt-wrap {
    grid-template-columns: 1fr;
  }

  .about-img-badge {
    bottom: -16px;
    right: -8px;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {

  .gabinety-grid,
  .opinie-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 50%;
  }

  /* Mobile navigation */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

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

  .cm-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* ─── WordPress Admin Bar fix ─── */
body.admin-bar .cm-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .cm-nav {
    top: 46px;
  }
}

/* ─── Remove default WP styles ─── */
.wp-block-post-content,
.wp-site-blocks,
.entry-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ─── Elementor Compatibility ─── */
body.elementor-page .elementor-section.elementor-section-stretched {
  max-width: none !important;
}

body.elementor-page .elementor-section.elementor-section-stretched>.elementor-container {
  max-width: none !important;
  padding: 0 !important;
}

body.elementor-page .elementor-column-gap-no>.elementor-column>.elementor-element-populated,
body.elementor-page .elementor-column-gap-no>.elementor-row>.elementor-column>.elementor-element-populated {
  padding: 0 !important;
}

body.elementor-page .elementor-widget:not(:last-child) {
  margin-bottom: 0 !important;
}

body.elementor-page .elementor-section {
  margin-bottom: 0 !important;
}

body.elementor-page .elementor-widget-html {
  width: 100%;
}