@charset "UTF-8";
/**
 * Theme Name: Uncode Lite (1:1 Digital Twin HTML5/CSS)
 * Client: CLI-004_DoktorPG (usgszwedzka.pl)
 * Description: Wierny arkusz styli 1:1 odtworzony z WordPress uncode-lite oraz SQL custom_css.
 * Primary Navy: #2e2968
 * Accent Red: #da271e
 * Accent Cyan: #1c9cda
 */

/* ==========================================================================
   0. Import czcionek Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Raleway:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. Zmienne / Tokeny Projektowe (SSOT docs/design.md)
   ========================================================================== */
:root {
  --color-primary: #2e2968;
  --color-accent-hover: #da271e;
  --color-accent-ui: #1c9cda;
  --color-text: rgba(0, 0, 0, 0.5);
  --color-text-dark: #333333;
  --color-bg: #ffffff;
  --color-zebra: #f2f2f2;
  --color-zebra-hover: #dddddd;
  --color-border: #dddddd;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

/* ==========================================================================
   2. Reset i Style Bazowe
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6em;
  letter-spacing: 0.4px;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  background-color: var(--color-bg);
}

body p {
  font-family: var(--font-body);
  line-height: 1.6em;
  letter-spacing: 0.4px;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  margin: 0 0 16px 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 16px 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

ul, ol {
  margin: 0 0 18px 25px;
  padding: 0;
}

li {
  margin-bottom: 6px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

hr {
  border: 0;
  height: 1px;
  background-color: #eeeeee;
  margin: 25px 0;
}

hr.red {
  border: 0;
  height: 2px;
  background-color: var(--color-accent-hover);
  margin: 20px 0 25px 0;
}

/* Screen reader / SEO visually hidden */
.screen-reader-text,
.site-branding.logo-title .site-title,
.site-branding.logo-title .site-description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Clearfix */
.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

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

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

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

/* ==========================================================================
   3. Kontener Główny
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================================================
   4. Header & Branding
   ========================================================================== */
header#masthead.site-header {
  background-color: #ffffff;
  position: relative;
  box-shadow: 0px 1px 8px -2px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.mainheader {
  background-color: #ffffff;
}

.mainheader .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
}

.site-branding {
  float: left;
  width: 30%;
  padding: 15px 0;
  display: flex;
  align-items: center;
}

.site-branding .logo a {
  display: inline-block;
}

.site-branding .logo img {
  display: block;
  max-height: 65px;
  width: auto;
}

/* ==========================================================================
   5. Nawigacja Główna (Wierność 1:1 z motywem uncode-lite)
   ========================================================================== */
nav#site-navigation.main-navigation {
  float: right;
  width: 70%;
  text-align: right;
}

#site-navigation ul#primary-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

#site-navigation ul#primary-menu > li {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 77px;
  text-transform: uppercase;
  position: relative;
}

#site-navigation ul#primary-menu > li > a {
  color: var(--color-primary);
  font-family: var(--font-heading);
  padding: 0 16px;
  display: block;
  position: relative;
  transition: color 0.3s ease-in-out;
}

#site-navigation ul#primary-menu > li:hover > a,
#site-navigation ul#primary-menu > li.current-menu-item > a,
#site-navigation ul#primary-menu > li.current_page_item > a {
  color: var(--color-accent-hover);
}

/* Przycisk Hamburger (Mobile Toggle) */
.toggle-wrap {
  display: none;
}

#site-navigation .nav-toggle {
  display: none;
  width: 36px;
  margin: 15px 0;
  float: right;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

#site-navigation .nav-toggle div {
  width: 100%;
  height: 4px;
  background-color: var(--color-accent-ui);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

#site-navigation .nav-toggle.on div.one {
  transform: rotate(45deg) translate(6px, 6px);
}

#site-navigation .nav-toggle.on div.two {
  opacity: 0;
}

#site-navigation .nav-toggle.on div.three {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ==========================================================================
   6. Baner Podstron (Hero Banner 1:1)
   ========================================================================== */
.page_header_wrap.page-banner {
  background-image: url('../img/USG_szwedzka_foto-10_2.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  padding: 65px 0 65px 0;
  margin-bottom: 50px;
  color: #ffffff;
}

.page_header_wrap.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.page_header_wrap.page-banner .container {
  position: relative;
  z-index: 2;
}

.page_header_wrap.page-banner .entry-title {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  text-transform: none;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   7. Układ 2-Kolumnowy (Primary Content ~70% + Right Sidebar ~28%)
   ========================================================================== */
.site-content {
  margin-bottom: 60px;
}

.inner-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

#primary.content-area {
  flex: 0 0 calc(71% - 20px);
  width: calc(71% - 20px);
  max-width: calc(71% - 20px);
}

#primary .entry-content h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 22px;
}

#primary .entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 25px;
  margin-bottom: 12px;
}

.signatures {
  margin-top: 35px;
  text-align: right;
}

.signatures p {
  margin: 4px 0;
  color: var(--color-primary);
  font-size: 15px;
}

/* ==========================================================================
   8. Prawy Pasek Boczny (Sidebar & Widgety)
   ========================================================================== */
#secondaryright.widget-area {
  flex: 0 0 calc(29% - 20px);
  width: calc(29% - 20px);
  max-width: calc(29% - 20px);
}

.widget-area .widget {
  margin-bottom: 28px;
  color: #555555;
  background-color: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  overflow: hidden;
}

.widget-area .widget-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  background-color: #f5f7fa;
  border-left: 4px solid var(--color-accent-ui);
  width: 100%;
  min-height: 44px;
  line-height: 44px;
  text-align: left;
  padding-left: 16px;
  padding-right: 16px;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid #e9ecef;
}

.widget-area .textwidget {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.widget-area .textwidget p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #555555;
}

.widget-area .textwidget p:last-child {
  margin-bottom: 0;
}

.widget-area .textwidget strong a {
  color: var(--color-accent-hover);
  font-size: 17px;
  font-weight: 700;
}

.widget-area .textwidget strong a:hover {
  color: var(--color-primary);
}

.widget-area .textwidget h3 {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin: 0;
}

.widget-area .textwidget h3 strong {
  color: var(--color-accent-hover);
}

.widget-area .widget_media_image {
  background: #ffffff;
  padding: 0;
  border: 1px solid #ebebeb;
}

.widget-area .widget_media_image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Przycisk Pobierz Poradnik PDF */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background-color: var(--color-accent-ui);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.25s ease;
  margin-top: 6px;
}

.btn-pdf:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
}

.btn-pdf img {
  vertical-align: middle;
  margin-right: 8px;
}

/* ==========================================================================
   9. Tabele Specjalistyczne (.lekarze, .badania, .cennik)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
}

table.lekarze,
table.badania,
table.cennik {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px 0;
  font-size: 14px;
}

table.lekarze th, table.lekarze td,
table.badania th, table.badania td,
table.cennik th, table.cennik td {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

table.lekarze tr:nth-child(even),
table.badania tr:nth-child(even),
table.cennik tr:nth-child(even) {
  background-color: var(--color-zebra);
}

table.lekarze tr:hover,
table.badania tr:hover,
table.cennik tr:hover {
  background-color: var(--color-zebra-hover);
  transition: background-color 0.15s ease-in-out;
}

/* Tabela Lekarzy */
table.lekarze td:first-child {
  width: 15%;
  color: #666666;
  font-weight: 500;
}

table.lekarze td.lekarz {
  width: 45%;
  font-weight: 700;
  color: var(--color-primary);
}

table.lekarze td:last-child {
  width: 40%;
  color: #555555;
}

/* Tabela Badań */
table.badania th {
  font-weight: 700;
  color: var(--color-primary);
  width: 32%;
  background-color: transparent;
}

table.badania td {
  color: var(--color-text);
  width: 68%;
}

/* Tabela Cennik */
table.cennik caption {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  padding: 12px 0 8px 0;
  caption-side: top;
}

table.cennik thead th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 11px 14px;
  border: 0;
}

table.cennik td.align-right,
table.cennik th.align-right {
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ==========================================================================
   10. Stopka Witryny (Footer)
   ========================================================================== */
footer#colophon.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 22px 0;
  line-height: 1.5;
  font-size: 13px;
}

footer .footerwrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-left {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 300;
}

footer .footer-left a {
  color: rgba(255, 255, 255, 0.7);
}

footer .footer-left a:hover {
  color: #ffffff;
}

/* Przycisk Scroll to Top */
.scrollup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #ffffff;
  background-color: rgba(28, 156, 218, 0.85);
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  font-size: 20px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scrollup.visible {
  opacity: 1;
  visibility: visible;
}

.scrollup:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   11. Responsywność (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .inner-container {
    gap: 25px;
  }
  
  #primary.content-area {
    flex: 0 0 calc(67% - 13px);
    width: calc(67% - 13px);
    max-width: calc(67% - 13px);
  }
  
  #secondaryright.widget-area {
    flex: 0 0 calc(33% - 12px);
    width: calc(33% - 12px);
    max-width: calc(33% - 12px);
  }
  
  #site-navigation ul#primary-menu > li > a {
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .mainheader .container {
    flex-direction: column;
    align-items: stretch;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .site-branding {
    float: none;
    width: 100%;
    justify-content: space-between;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eeeeee;
  }

  nav#site-navigation.main-navigation {
    float: none;
    width: 100%;
    text-align: left;
  }

  .toggle-wrap {
    display: block;
    overflow: hidden;
  }

  #site-navigation .nav-toggle {
    display: inline-block;
  }

  #site-navigation ul#primary-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0 0 0;
    margin: 0;
  }

  #site-navigation ul#primary-menu.menu-open {
    display: flex;
  }

  #site-navigation ul#primary-menu > li {
    display: block;
    width: 100%;
    line-height: 1.5;
    border-bottom: 1px solid #f2f2f2;
  }

  #site-navigation ul#primary-menu > li:last-child {
    border-bottom: none;
  }

  #site-navigation ul#primary-menu > li > a {
    padding: 12px 10px;
    display: block;
    font-size: 14px;
  }

  .page_header_wrap.page-banner {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page_header_wrap.page-banner .entry-title {
    font-size: 26px;
  }

  .inner-container {
    flex-direction: column;
    gap: 35px;
  }

  #primary.content-area {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #secondaryright.widget-area {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  footer .footerwrap {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  table.lekarze th, table.lekarze td,
  table.badania th, table.badania td,
  table.cennik th, table.cennik td {
    padding: 10px 8px;
    font-size: 13px;
  }
}
