/*
Theme Name: Obrączka Ślubna
Theme URI: https://obraczkaslubna.pl
Author: obraczkaslubna.pl
Description: Motyw dla serwisu obraczkaslubna.pl — obrączki, kalkulatory wartości kruszcu, poradniki. Strona główna z kalkulatorem ceny obrączek, kafelkami metali i sekcją poradników.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: obraczkaslubna
*/

:root {
	--gold: #A57C32;
	--gold-dark: #85621F;
	--gold-soft: #EFE4CF;
	--ink: #28241F;
	--ink-2: #4A443C;
	--muted: #6B6358;
	--ivory: #FAF7F1;
	--paper: #FFFFFF;
	--line: #E6DCCB;
	--serif: "Cormorant Garamond", Georgia, serif;
	--text: "Source Serif 4", Georgia, serif;
	--sans: "Jost", system-ui, sans-serif;
	--wrap: 1200px;
	--radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--paper); padding: 10px 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 4px; font-family: var(--serif); font-size: 20px; font-weight: 600; background: linear-gradient(180deg, #B48A3E, #9A7230); color: #fff; border: 0; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(133,98,31,.6); transition: filter .2s; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; font-size: 17px; min-height: 42px; padding: 0 20px; }
.btn--outline:hover { background: var(--ink); color: var(--ivory); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; color: var(--gold-dark); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--ink { color: var(--ink); font-size: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,241,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.site-logo img { height: 54px; width: auto; }
@media (max-width: 1100px) { .site-logo img { height: 44px; } }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 8px; }
.main-nav li { position: relative; }
.main-nav a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--gold-dark); }
.main-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 16px 32px -16px rgba(40,36,31,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 12px; border-radius: 4px; }
.main-nav .sub-menu a:hover { background: var(--ivory); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero { position: relative; background: var(--ivory) url(assets/img/hero.jpg) right center / cover no-repeat; min-height: 520px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,247,241,.97) 0%, rgba(250,247,241,.9) 36%, rgba(250,247,241,0) 62%); }
.hero .wrap { position: relative; width: 100%; padding-top: 64px; padding-bottom: 120px; }
.hero__inner { max-width: 520px; }
.eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 20px; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 440px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; }

/* Calculator */
.calc { position: relative; z-index: 2; margin-top: -80px; }
.calc__box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 48px -28px rgba(40,36,31,.3); padding: 32px 40px; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 40px; align-items: center; }
.calc h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 22px; }
.calc__form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: 16px; align-items: end; }
.calc label { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.calc select { width: 100%; height: 50px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2328241F' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat; -webkit-appearance: none; appearance: none; font-family: var(--text); font-size: 17px; color: var(--ink); cursor: pointer; }
.calc select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.calc .btn { height: 50px; }
.calc__result { border-left: 1px solid var(--line); padding-left: 40px; text-align: center; }
.calc__result-label { font-family: var(--serif); font-size: 20px; }
.calc__price { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--gold-dark); line-height: 1.15; margin: 6px 0; }
.calc__note { font-size: 13px; color: var(--muted); margin: 0; }

/* Section titles */
.section { padding: 80px 0 0; }
.section-title { display: flex; align-items: center; gap: 32px; justify-content: center; text-align: center; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 40px; }
.section-title::before, .section-title::after { content: ""; flex: 0 1 160px; height: 1px; background: var(--gold); opacity: .6; }

/* Metal tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tile { position: relative; display: flex; min-height: 190px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.tile:hover { color: var(--ink); border-color: var(--gold); box-shadow: 0 18px 36px -24px rgba(40,36,31,.35); }
.tile__img { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center; }
.tile__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 45%); }
.tile__body { position: relative; padding: 24px 22px; max-width: 64%; display: flex; flex-direction: column; }
.tile h3 { font-size: 28px; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.tile .link-arrow { margin-top: auto; align-self: flex-start; }
.tile__badge { display: inline-block; align-self: flex-start; font-family: var(--sans); font-size: 12px; background: var(--gold-soft); color: var(--ink); padding: 3px 10px; border-radius: 99px; margin: -6px 0 12px; }

/* Dark band */
.band { margin-top: 64px; background: var(--ink); color: var(--ivory); }
.band .wrap { display: flex; align-items: center; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.band h2 { color: var(--ivory); font-size: clamp(28px, 3vw, 38px); font-weight: 500; margin: 0; }
.band p { margin: 0; font-size: 15px; color: #DCD3C4; border-left: 1px solid rgba(250,247,241,.25); padding-left: 32px; max-width: 320px; }
.band .btn { margin-left: auto; flex-shrink: 0; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.guide:hover { color: var(--ink); border-color: var(--gold); }
.guide__img { aspect-ratio: 16/7.5; overflow: hidden; }
.guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.guide:hover .guide__img img { transform: scale(1.04); }
.guide__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.guide h3 { font-size: 26px; }
.guide p { font-size: 15px; color: var(--ink-2); }
.guide .link-arrow { margin-top: auto; align-self: flex-start; }

/* CTA */
.cta { margin-top: 80px; background: linear-gradient(90deg, var(--ivory) 30%, rgba(250,247,241,.7)), url(assets/img/hero.jpg) center 30% / cover; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: flex; align-items: center; gap: 48px; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 6px; }
.cta p { margin: 0; color: var(--ink-2); font-size: 16px; }
.cta__action { margin-left: auto; border-left: 1px solid var(--line); padding-left: 48px; }

/* Footer */
.site-footer { background: var(--ivory); }
.site-footer .wrap { display: flex; align-items: center; gap: 32px; min-height: 96px; flex-wrap: wrap; }
.site-footer .site-logo img { height: 48px; }
.footer-nav { margin-left: auto; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer-nav a { font-family: var(--sans); font-size: 15px; color: var(--ink); }
.footer-nav a:hover { color: var(--gold-dark); }
.footer-bottom { border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.footer-bottom .wrap { min-height: 56px; justify-content: space-between; }

/* Content pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); margin: 0; }
.page-head .eyebrow { margin-bottom: 12px; }
.content-area { padding: 56px 0 96px; }
.entry { max-width: 760px; margin: 0 auto; }
.entry h2 { font-size: 36px; margin-top: 1.6em; }
.entry h3 { font-size: 28px; margin-top: 1.4em; }
.entry a { border-bottom: 1px solid currentColor; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 24px; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry th { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--muted); }
.entry img { border-radius: var(--radius); }
.entry-thumb { max-width: 960px; margin: 0 auto 48px; border-radius: 8px; overflow: hidden; }
.entry-meta { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; font-family: var(--sans); }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.search-form { display: flex; gap: 12px; max-width: 520px; }
.search-form input[type=search] { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--paper); }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Responsive */
@media (max-width: 1100px) {
	.site-header .wrap { gap: 16px; }
	.main-nav > ul { gap: 0; }
	.main-nav a { padding: 10px 9px; }
}
@media (max-width: 980px) {
	.header-cta { display: none; }
}
@media (max-width: 1080px) {
	.calc__box { grid-template-columns: 1fr; }
	.calc__result { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
	.tiles, .guides, .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; gap: 0; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
	.header-cta { display: none; }
	.hero { background-position: 70% center; }
	.hero::before { background: linear-gradient(180deg, rgba(250,247,241,.95) 0%, rgba(250,247,241,.8) 60%, rgba(250,247,241,.5)); }
	.calc__form { grid-template-columns: 1fr 1fr; }
	.calc__form .btn { grid-column: 1 / -1; }
	.band .wrap, .cta .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
	.band p { border-left: 0; padding-left: 0; }
	.band .btn { margin-left: 0; }
	.cta__action { margin-left: 0; border-left: 0; padding-left: 0; }
	.footer-nav { margin-left: 0; }
}
@media (max-width: 620px) {
	.tiles, .guides, .posts-grid { grid-template-columns: 1fr; }
	.calc__box { padding: 24px 20px; }
	.section-title::before, .section-title::after { display: none; }
}
