/*
Theme Name: Wiercimy Wodę
Theme URI: https://wiercimywode.pl
Author: Wiercimy Wodę
Description: Autorski motyw dla ogólnopolskiego serwisu o wierceniu studni głębinowych.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: wiercimy-wode
*/

:root {
  --ww-ink: #0b3e46;
  --ww-ink-2: #12545d;
  --ww-aqua: #8ad6df;
  --ww-aqua-2: #3faebd;
  --ww-mint: #e7f3ef;
  --ww-paper: #f7f6f2;
  --ww-white: #fff;
  --ww-text: #153b40;
  --ww-muted: #62797d;
  --ww-line: #d9e3e1;
  --ww-orange: #d87333;
  --ww-shadow: 0 18px 50px rgba(9, 55, 62, .12);
  --ww-radius: 22px;
  --ww-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ww-text);
  background: var(--ww-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.ww-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ww-container { width: min(calc(100% - 40px), var(--ww-container)); margin-inline: auto; }
.ww-section { padding: clamp(68px, 9vw, 120px) 0; }
.ww-section--white { background: #fff; }
.ww-section--ink { color: #fff; background: var(--ww-ink); }
.ww-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  color: var(--ww-aqua-2); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
}
.ww-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.ww-heading { margin: 0; max-width: 780px; font-size: clamp(2rem, 4.4vw, 4.7rem); font-weight: 420; line-height: 1.05; letter-spacing: -.05em; }
.ww-subheading { max-width: 720px; margin: 24px 0 0; color: var(--ww-muted); font-size: 1.08rem; }
.ww-section--ink .ww-subheading { color: rgba(255,255,255,.72); }
.ww-btn {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 12px;
  padding: 0 24px; border: 1px solid transparent; border-radius: 3px;
  background: var(--ww-aqua); color: var(--ww-ink); font-weight: 800; transition: .2s ease;
}
.ww-btn:hover { transform: translateY(-2px); background: #a6e6ec; }
.ww-btn--ghost { border-color: rgba(255,255,255,.25); background: transparent; color: #fff; }
.ww-btn--ghost:hover { background: rgba(255,255,255,.08); }
.ww-btn--dark { background: var(--ww-ink); color: #fff; }
.ww-btn--dark:hover { background: var(--ww-ink-2); }
.ww-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-bottom: 1px solid currentColor; }

.ww-topbar { min-height: 34px; display: flex; align-items: center; background: var(--ww-ink); color: rgba(255,255,255,.76); font-size: .76rem; }
.ww-topbar .ww-container { display: flex; align-items: center; gap: 8px; }
.ww-topbar svg { width: 14px; color: var(--ww-aqua); }
.ww-header { position: relative; z-index: 1000; background: rgba(247,246,242,.97); border-bottom: 1px solid rgba(11,62,70,.08); }
.ww-header__row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ww-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.ww-logo__mark { width: 42px; color: var(--ww-aqua-2); }
.ww-logo__text { font-weight: 900; line-height: .95; letter-spacing: -.025em; text-transform: uppercase; }
.ww-logo__text small { display: block; font-size: .69rem; }
.ww-logo__text strong { display: block; font-size: 1.12rem; }
.ww-logo__text i { color: var(--ww-aqua-2); font-style: normal; }
.ww-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.ww-nav-list { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.ww-nav a { position: relative; font-size: .88rem; font-weight: 650; }
.ww-nav a::after { position: absolute; inset: auto 0 -8px; height: 2px; background: var(--ww-aqua-2); transform: scaleX(0); transform-origin: left; transition: .2s; content: ""; }
.ww-nav a:hover::after { transform: scaleX(1); }
.ww-languages { display: flex; gap: 8px; padding-left: 12px; border-left: 1px solid var(--ww-line); font-size: .75rem; }
.ww-languages .current-lang a { font-weight: 900; border-bottom: 2px solid var(--ww-aqua-2); }
.ww-header__cta { width: 46px; height: 46px; display: grid; place-items: center; background: #e6f0ec; font-size: 1.25rem; }
.ww-menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--ww-ink); color: #fff; }

.ww-hero { display: grid; min-height: 590px; grid-template-columns: 1.02fr .98fr; background: var(--ww-ink); }
.ww-hero__copy { display: flex; justify-content: flex-end; align-items: center; padding: 72px 5vw 72px max(32px, calc((100vw - var(--ww-container))/2)); color: #fff; }
.ww-hero__inner { width: min(100%, 590px); margin-right: auto; }
.ww-hero h1 { margin: 24px 0; font-size: clamp(3.1rem, 6vw, 6rem); font-weight: 390; line-height: .98; letter-spacing: -.065em; }
.ww-hero h1 span { display: block; color: var(--ww-aqua); }
.ww-hero__intro { max-width: 570px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.ww-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ww-hero__proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; color: rgba(255,255,255,.62); font-size: .76rem; }
.ww-hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.ww-hero__proof i { color: var(--ww-aqua); font-style: normal; font-size: 1.05rem; }
.ww-hero__media { position: relative; min-height: 590px; overflow: hidden; background: #143f45; }
.ww-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.ww-hero__media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,62,70,.13), transparent 45%); content: ""; pointer-events: none; }
.ww-hero__label { position: absolute; z-index: 2; top: 30px; left: 28px; padding: 11px 16px; background: rgba(255,255,255,.9); color: var(--ww-ink); font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.ww-hero__metric { position: absolute; z-index: 2; right: 30px; bottom: 30px; min-width: 150px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.35); background: rgba(11,62,70,.79); color: #fff; }
.ww-hero__metric small { display: block; color: rgba(255,255,255,.7); }
.ww-hero__metric strong { font-size: 2.5rem; font-weight: 450; line-height: 1.1; }

.ww-location-strip { padding: 32px 0; background: #fff; border-bottom: 1px solid var(--ww-line); }
.ww-location-strip__row { display: grid; grid-template-columns: 1fr minmax(320px, 520px); align-items: center; gap: 32px; }
.ww-location-strip h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.ww-mini-search { display: flex; gap: 10px; }
.ww-mini-search input { width: 100%; min-height: 52px; padding: 0 17px; border: 1px solid var(--ww-line); background: var(--ww-paper); }

.ww-purpose-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; margin-top: 52px; background: var(--ww-line); border: 1px solid var(--ww-line); }
.ww-purpose-card { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: #fff; transition: .2s; }
.ww-purpose-card:hover { position: relative; z-index: 2; transform: translateY(-5px); box-shadow: var(--ww-shadow); }
.ww-purpose-card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ww-mint); color: var(--ww-ink); font-size: 1.5rem; }
.ww-purpose-card h3 { margin: 26px 0 8px; font-size: 1.2rem; }
.ww-purpose-card p { margin: 0; color: var(--ww-muted); font-size: .9rem; }
.ww-purpose-card a { margin-top: 22px; font-size: .82rem; font-weight: 800; }

.ww-process { display: grid; grid-template-columns: minmax(300px,.8fr) 1.2fr; gap: clamp(45px, 8vw, 110px); }
.ww-process__sticky { align-self: start; position: sticky; top: 30px; }
.ww-steps { border-top: 1px solid rgba(255,255,255,.2); }
.ww-step { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.ww-step__number { color: var(--ww-aqua); font-family: ui-monospace, monospace; font-weight: 800; }
.ww-step h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ww-step p { margin: 0; color: rgba(255,255,255,.62); font-size: .92rem; }

.ww-price-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.ww-included { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ww-included div { padding: 22px; background: #fff; border: 1px solid var(--ww-line); }
.ww-included strong { display: block; font-size: 1.05rem; }
.ww-included span { color: var(--ww-aqua-2); font-size: .72rem; font-weight: 900; }

.ww-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 45px; }
.ww-gallery figure { position: relative; min-height: 240px; margin: 0; overflow: hidden; background: #dfe8e5; }
.ww-gallery figure:nth-child(1), .ww-gallery figure:nth-child(4) { grid-column: span 7; }
.ww-gallery figure:nth-child(2), .ww-gallery figure:nth-child(3) { grid-column: span 5; }
.ww-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ww-gallery figure:hover img { transform: scale(1.035); }
.ww-gallery figcaption { position: absolute; inset: auto 15px 15px; padding: 9px 12px; background: rgba(11,62,70,.82); color: #fff; font-size: .76rem; }

.ww-faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.ww-faq details { border-top: 1px solid var(--ww-line); }
.ww-faq details:last-child { border-bottom: 1px solid var(--ww-line); }
.ww-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 800; cursor: pointer; list-style: none; }
.ww-faq summary::-webkit-details-marker { display: none; }
.ww-faq summary::after { content: "+"; color: var(--ww-aqua-2); font-size: 1.5rem; font-weight: 400; }
.ww-faq details[open] summary::after { content: "−"; }
.ww-faq details p { margin: -7px 0 24px; color: var(--ww-muted); }

.ww-guides { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 45px; }
.ww-guide { display: flex; min-height: 295px; flex-direction: column; padding: 30px; border: 1px solid var(--ww-line); background: #fff; }
.ww-guide__n { color: var(--ww-aqua-2); font-family: ui-monospace, monospace; font-weight: 900; }
.ww-guide h3 { margin: 38px 0 13px; font-size: 1.35rem; line-height: 1.2; }
.ww-guide p { color: var(--ww-muted); }
.ww-guide a { margin-top: auto; font-weight: 800; }

.ww-contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.ww-contact-card { padding: clamp(28px,5vw,55px); background: #fff; color: var(--ww-text); box-shadow: var(--ww-shadow); }
.ww-form { display: grid; gap: 15px; }
.ww-field { display: grid; gap: 7px; }
.ww-field label { font-size: .8rem; font-weight: 800; }
.ww-field input, .ww-field select, .ww-field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--ww-line); border-radius: 0; background: #fbfcfa; }
.ww-field textarea { min-height: 110px; resize: vertical; }
.ww-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ww-muted); font-size: .76rem; }
.ww-check input { margin-top: 4px; }
.ww-form-status { min-height: 25px; margin: 0; font-size: .86rem; font-weight: 700; }
.ww-form-status.is-success { color: #24714d; }
.ww-form-status.is-error { color: #b83f43; }
.ww-form-note { margin: 8px 0 0; color: var(--ww-muted); font-size: .74rem; }

.ww-partner-invite { padding: 27px 0; background: #eef4f1; border-top: 1px solid var(--ww-line); }
.ww-partner-invite__row { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.ww-partner-invite p { margin: 0; color: var(--ww-muted); font-size: .9rem; }
.ww-partner-invite button { padding: 8px 13px; border: 1px solid var(--ww-ink); background: transparent; color: var(--ww-ink); font-size: .78rem; font-weight: 800; }
.ww-modal { position: fixed; z-index: 9999; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(3,31,35,.75); }
.ww-modal.is-open { display: grid; }
.ww-modal__box { position: relative; width: min(100%, 610px); max-height: calc(100vh - 40px); overflow: auto; padding: 40px; background: #fff; box-shadow: var(--ww-shadow); }
.ww-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; background: var(--ww-paper); font-size: 1.4rem; }
.ww-modal h2 { margin: 0 45px 8px 0; font-size: 1.7rem; }
.ww-modal p { color: var(--ww-muted); }

.ww-footer { padding: 60px 0 25px; background: #082f35; color: #fff; }
.ww-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.ww-footer__about { max-width: 380px; color: rgba(255,255,255,.6); }
.ww-footer h3 { margin: 0 0 15px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.ww-footer ul { margin: 0; padding: 0; list-style: none; }
.ww-footer li { margin: 7px 0; color: rgba(255,255,255,.68); }
.ww-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .75rem; }

.ww-page-hero { padding: 82px 0 62px; background: var(--ww-ink); color: #fff; }
.ww-page-hero h1 { max-width: 930px; margin: 0; font-size: clamp(2.5rem,5vw,5rem); font-weight: 420; line-height: 1.05; letter-spacing: -.045em; }
.ww-page-hero p { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.ww-breadcrumbs { margin-bottom: 18px; color: var(--ww-aqua); font-size: .76rem; }
.ww-content { padding: 65px 0 95px; }
.ww-content__inner { max-width: 850px; }
.ww-content h2 { margin-top: 45px; font-size: clamp(1.6rem,3vw,2.6rem); line-height: 1.15; }
.ww-content h3 { margin-top: 34px; }
.ww-content p, .ww-content li { color: #486367; }
.ww-content a { color: #087c8b; text-decoration: underline; }
.ww-localities { columns: 3; column-gap: 30px; padding: 0; list-style: none; }
.ww-localities li { break-inside: avoid; padding: 5px 0; }
.ww-region-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 35px 0; }
.ww-region-grid a { min-height: 88px; display: flex; align-items: center; padding: 18px; border: 1px solid var(--ww-line); background: #fff; font-weight: 800; text-decoration: none; }
.ww-region-grid a:hover { border-color: var(--ww-aqua-2); }
.ww-empty { min-height: 45vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1050px) {
  .ww-nav { gap: 15px; }
  .ww-nav-list { gap: 15px; }
  .ww-nav a { font-size: .8rem; }
  .ww-purpose-grid { grid-template-columns: repeat(3,1fr); }
  .ww-region-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px) {
  .ww-menu-toggle { display: grid; place-items: center; }
  .ww-nav { position: fixed; z-index: 1001; inset: 126px 0 0; display: none; flex-direction: column; align-items: flex-start; padding: 28px 24px; background: var(--ww-paper); overflow: auto; }
  .ww-nav.is-open { display: flex; }
  .ww-nav a { width: 100%; padding: 10px 0; font-size: 1.15rem; }
  .ww-nav-list { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .ww-nav-list li { width: 100%; }
  .ww-languages { width: 100%; padding: 18px 0 0; border: 0; border-top: 1px solid var(--ww-line); }
  .ww-header__cta { display: none; }
  .ww-hero { grid-template-columns: 1fr; }
  .ww-hero__copy { padding: 65px 24px; }
  .ww-hero__media { min-height: 460px; }
  .ww-location-strip__row, .ww-price-grid, .ww-contact, .ww-faq-grid, .ww-process { grid-template-columns: 1fr; }
  .ww-process__sticky { position: static; }
  .ww-guides { grid-template-columns: 1fr; }
  .ww-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ww-container { width: min(calc(100% - 28px), var(--ww-container)); }
  .ww-topbar { min-height: 42px; line-height: 1.25; }
  .ww-header__row { min-height: 78px; }
  .ww-logo__mark { width: 35px; }
  .ww-nav { inset: 120px 0 0; }
  .ww-hero { min-height: auto; }
  .ww-hero__copy { padding-top: 52px; padding-bottom: 52px; }
  .ww-hero h1 { font-size: clamp(3rem,15vw,4.5rem); }
  .ww-hero__actions { align-items: stretch; flex-direction: column; }
  .ww-hero__media { min-height: 380px; }
  .ww-hero__label { top: 16px; left: 14px; }
  .ww-hero__metric { right: 14px; bottom: 14px; }
  .ww-location-strip__row { gap: 17px; }
  .ww-mini-search { flex-direction: column; }
  .ww-purpose-grid { grid-template-columns: 1fr; }
  .ww-purpose-card { min-height: 220px; }
  .ww-included { grid-template-columns: 1fr; }
  .ww-gallery { grid-template-columns: 1fr; }
  .ww-gallery figure, .ww-gallery figure:nth-child(n) { grid-column: auto; min-height: 260px; }
  .ww-region-grid { grid-template-columns: 1fr; }
  .ww-localities { columns: 2; }
  .ww-partner-invite__row { flex-direction: column; }
  .ww-modal__box { padding: 30px 22px; }
  .ww-footer__grid { grid-template-columns: 1fr; }
  .ww-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
