/*
Theme Name: BorMed Clinic
Theme URI: https://bormed-clinic.pl
Author: BorMed Clinic
Description: Motyw dla kliniki ortopedycznej i ginekologicznej w beżowo-czarnej kolorystyce.
Version: 1.2
Text Domain: bormed
*/

:root {
  --black: #121212;
  --black-soft: #2a2620;
  --beige: #efe3cc;
  --beige-light: #f7f1e6;
  --beige-bg: #f3ebdd;
  --tan: #b8976a;
  --tan-dark: #8a7350;
  --text: #1b1b1b;
  --muted: #6b6256;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--beige-light);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--tan-dark); }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--beige-light); border-bottom: 1px solid #ddd0b8;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 16px; flex-wrap: wrap;
}
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; display: block; }
.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--tan-dark); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--beige); color: var(--black) !important;
  padding: 14px 34px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #dcc9a6; transform: translateY(-2px); }
.btn-primary { background: var(--black); color: var(--beige) !important; }
.btn-primary:hover { background: #000; }
.site-header .btn { background: var(--black); color: var(--beige) !important; padding: 10px 24px; }
.site-header .btn:hover { background: #000; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d0d0d, var(--black-soft));
  color: var(--beige); padding: 110px 0 120px; text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; line-height: 1.2; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; opacity: .9; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--beige-bg); }
.section-title { text-align: center; margin: 0 0 12px; font-size: 2rem; color: var(--black); }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 44px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 6px 24px rgba(18, 18, 18, .08); border-top: 4px solid var(--black);
}
.card h3 { margin: 0 0 4px; font-size: 1.5rem; color: var(--black); }
.card .doctor { margin: 0 0 18px; color: var(--tan-dark); font-weight: 600; }
.card h4 { margin: 18px 0 6px; font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--tan-dark); }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 4px; }
.card .card-phone { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6dcc8; font-weight: 600; }
.card .card-phone a { color: var(--black); text-decoration: none; }

/* Form */
.form-wrap {
  max-width: 560px; margin: 0 auto; background: #fff;
  padding: 36px 32px; border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(18, 18, 18, .1);
}
.form-wrap label { display: block; font-weight: 600; margin: 0 0 6px; }
.form-wrap input[type="text"],
.form-wrap input[type="tel"],
.form-wrap input[type="email"] {
  width: 100%; padding: 13px 14px; margin-bottom: 20px;
  border: 1px solid #d6c9b0; border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--beige-light);
}
.form-wrap input:focus { outline: 2px solid var(--black); border-color: transparent; }
.form-wrap .consent { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; font-weight: 400; }
.form-wrap .consent input { margin-top: 4px; }
.form-wrap .btn { width: 100%; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { max-width: 560px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 8px; text-align: center; font-weight: 600; }
.notice.ok { background: #e6efdc; color: #2f5a22; }
.notice.err { background: #f6e1dc; color: #8a2a1c; }

/* O nas */
.page-hero {
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; position: relative; color: var(--beige); text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, .45); }
.page-hero h1 { position: relative; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.content-area { max-width: 820px; margin: 0 auto; font-size: 1.08rem; }
.content-area h2, .content-area h3 { color: var(--black); }

/* Footer */
.site-footer { background: var(--black); color: var(--beige); padding: 44px 0; text-align: center; font-size: .95rem; }
.site-footer a { color: var(--beige); text-decoration: none; font-weight: 600; }
.site-footer p { margin: 6px 0; }
.site-footer .phones span { display: inline-block; margin: 0 14px; }
.site-footer .small { opacity: .7; font-size: .85rem; margin-top: 16px; }

@media (max-width: 640px) {
  .hero { padding: 70px 0 80px; }
  section { padding: 56px 0; }
  .main-nav ul { gap: 14px; }
  .logo img { height: 44px; }
}
