/*
Theme Name: Holm House 2
Theme URI: https://holmhouse2.pl
Description: Motyw Wspólnoty Mieszkaniowej Holm House 2
Version: 1.0.0
Author: Holmsik
Text Domain: holmhouse2
*/

/* ============================================================
   ZMIENNE I RESET
   ============================================================ */
:root {
  --navy:    #1B3344;
  --navy-80: rgba(27,51,68,0.8);
  --navy-40: rgba(27,51,68,0.4);
  --gold:    #C9A84C;
  --white:   #FFFFFF;
  --light:   #F8F9FA;
  --gray:    #6C757D;
  --border:  #E9ECEF;
  --text:    #212529;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --trans: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAFIA
   ============================================================ */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem,5vw,3.25rem); }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); }
h3 { font-size: 1.25rem; }
p  { font-size: 1rem; line-height: 1.7; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--light); }

/* ============================================================
   NAWIGACJA
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--white); font-family: var(--font-serif);
}
.site-logo img { height: 36px; width: auto; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name  { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.2; }
.site-logo__sub   { font-size: 0.65rem; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; }

.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav li { list-style: none; }
.site-nav a {
  display: block; padding: 0 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  height: 68px; line-height: 68px;
  border-bottom: 3px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}
.site-nav a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.site-nav a.active, .site-nav a[aria-current] { color: var(--white); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--white);
}
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  right: 0; top: 0;
  height: 100%; width: auto;
  max-width: 58%;
  object-fit: cover;
  object-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.08) 12%, rgba(0,0,0,0.5) 28%, black 52%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.08) 12%, rgba(0,0,0,0.5) 28%, black 52%);
}
.hero__bg--placeholder {
  background-image: linear-gradient(to right, #fff 45%, rgba(255,255,255,0.5) 65%, rgba(27,51,68,0.15) 80%),
                    linear-gradient(135deg, #c8d8e8 0%, #8aafc8 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 600px;
  padding: 5rem 2rem 5rem max(2rem, calc((100vw - 1200px)/2 + 2rem));
}
.hero__eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.hero__title { margin-bottom: 1.5rem; color: var(--navy); }
.hero__body { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; max-width: 480px; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: var(--white);
  padding: 0.875rem 2rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background var(--trans), transform var(--trans);
}
.hero__cta:hover { background: #254660; transform: translateY(-1px); }

/* ============================================================
   AKTUALNOŚCI
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.news-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, #c8d8e8 0%, #8aafc8 100%); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card__pill {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pill--ogloszenie  { background: #E8F4FD; color: #1565C0; }
.pill--przetarg    { background: #FFF3E0; color: #E65100; }
.pill--zawiadomienie { background: #F3E5F5; color: #6A1B9A; }
.news-card__date { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.5rem; }
.news-card__title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.news-card__excerpt { font-size: 0.9rem; color: var(--gray); flex: 1; }
.news-card__link { margin-top: 1.25rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 0.3rem; }
.news-card__link::after { content: "→"; }

.section__header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.section__link { font-size: 0.875rem; font-weight: 600; color: var(--navy); opacity: 0.7; transition: opacity var(--trans); }
.section__link:hover { opacity: 1; }

/* ============================================================
   PRZETARGI
   ============================================================ */
.tenders-table-wrap { margin-top: 2rem; overflow-x: auto; }
.tenders-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.tenders-table th {
  background: var(--navy); color: var(--white);
  padding: 1rem 1.25rem; text-align: left;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.tenders-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.tenders-table tr:last-child td { border-bottom: none; }
.tenders-table tr:hover td { background: var(--light); }
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--active   { background: #E8F5E9; color: #2E7D32; }

/* Statusy przetargów */
[class*="pill--status-"] { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 999px; display: inline-block; }
.pill--status-przyjmowanie-ofert { background: #FFF3E0; color: #E65100; }
.pill--status-zakonczony         { background: #F3F4F6; color: #6B7280; }
.pill--status-rozstrzygniety     { background: #E8F5E9; color: #2E7D32; }
.pill--status-anulowany          { background: #FEE2E2; color: #B91C1C; }
.pill--status-w-trakcie-oceny    { background: #EEF2FF; color: #3730A3; }
.badge--closed   { background: #F5F5F5; color: #757575; }
.badge--analysis { background: #FFF8E1; color: #F57F17; }
.tender-name { font-weight: 600; color: var(--navy); }
.tender-name small { display: block; font-weight: 400; color: var(--gray); font-size: 0.8rem; margin-top: 0.2rem; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
  margin-top: 2.5rem;
}
.contact-info h3 { color: var(--navy); margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
}
.contact-list li span:not(.contact-icon) { font-size: 1rem; line-height: 1.6; color: var(--text); padding-top: 0.5rem; }
.contact-list li a { color: var(--navy); font-weight: 500; font-size: 1rem; padding-top: 0.6rem; display: inline-block; }
.contact-list li a:hover { text-decoration: underline; }
.contact-map { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   STOPKA
   ============================================================ */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 1rem 0;
}
.footer-copy {
  text-align: center; font-size: 0.8rem; margin: 0;
}

/* ============================================================
   PAGE CONTENT (Aktualności / Przetargi / Kontakt podstrony)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 4rem 0 3rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero p { opacity: 0.7; margin-top: 0.75rem; font-size: 1.05rem; }
.page-content { padding: 4rem 0; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }


}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; color: white; padding: 0.5rem; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem 0; }
  .site-nav.open a { height: auto; line-height: 1.5; padding: 0.75rem 2rem; border-bottom: none; border-left: 3px solid transparent; }
  .site-nav.open a.active { border-left-color: var(--gold); }
  .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .hero__content { padding: 3rem 1.5rem; }
  .hero__photo { display: none; }
  .hero__bg--placeholder { background-image: linear-gradient(to bottom, rgba(255,255,255,0.9) 50%, rgba(27,51,68,0.15) 100%), linear-gradient(135deg, #c8d8e8 0%, #8aafc8 100%); }
}

/* ── RODO section ─────────────────────────────────────────── */
.rodo-section {
  background: #f8f9fa;
  border-top: 1px solid var(--border, #e5e7eb);
  padding: 2rem 0 2.5rem;
  margin-top: 3rem;
}

.rodo-details {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.rodo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  list-style: none;
  user-select: none;
}

.rodo-summary::-webkit-details-marker { display: none; }

.rodo-summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold, #b8962e);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.rodo-details[open] .rodo-summary::after {
  content: '−';
}

.rodo-body {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.82rem;
  color: var(--text-muted, #4b5563);
  line-height: 1.7;
}

.rodo-body h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 1.25rem 0 0.4rem;
}

.rodo-body ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0;
}

.rodo-body ul li { margin-bottom: 0.25rem; }

.rodo-body p { margin: 0.25rem 0 0; }

.rodo-body a { color: var(--navy); text-decoration: underline; }

/* ── Single post — entry-content typography ─────────────────── */
.entry-content {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-sans);
  line-height: 1.3;
  color: var(--navy);
}

.entry-content h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
}

.entry-content h2:first-child { margin-top: 2rem; }

.entry-content h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin: 2.5rem 0 0.6rem;
}

.entry-content p {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.85;
}

.entry-content ul,
.entry-content ol {
  margin: 0.4rem 0 1.4rem 1.5rem;
  font-size: 0.96rem;
  line-height: 1.8;
}

.entry-content li { margin-bottom: 0.5rem; }

.entry-content strong { font-weight: 600; }

.entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover { opacity: 0.75; }

/* Single post — smaller hero title for long document headings */
.single .page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Single post — more breathing room */
.single .page-content {
  padding: 5rem 0 6rem;
}
