/*
Theme Name: Kotelnyk
Description: Theme for kotelnyk.com — destination wedding photographer Anastasiya Kotelnyk. Recreates the original design with editable blocks, galleries and an improved phone layout.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kotelnyk
*/

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f9f9f5; color: #383634; font-family: 'Montserrat Regular', sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
.kt-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #222; color: #fff; padding: 8px 14px; }
.kt-skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.kt-header { background: #fafafa; position: relative; z-index: 50; }
.kt-header__inner { height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 65px; }
.kt-logo { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(30px, 3.27vw, 47px); line-height: 1; letter-spacing: .2em; color: #222; text-transform: uppercase; white-space: nowrap; display: inline-block; margin-right: -.2em; }
.kt-header__logo { text-align: center; padding: 0 30px; }
.kt-menu { list-style: none; margin: 0; padding: 0; }
.kt-menu a { font-family: 'Montserrat Regular', sans-serif; font-size: 20px; line-height: 20px; letter-spacing: 1px; color: #333; text-transform: uppercase; }
.kt-menu a:hover, .kt-menu .current-menu-item > a, .kt-menu .current_page_item > a, .kt-menu .current-menu-ancestor > a { color: #ccc; }
.kt-menu--left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kt-menu--left li { line-height: 20px; }
.kt-menu--left li:not(:last-child)::after { content: '|'; font-family: 'Montserrat Regular', sans-serif; font-size: 20px; color: #333; margin-left: 45px; }
.kt-header__right { justify-self: end; }
.kt-menu--right { display: flex; gap: 30px; }
.kt-burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.kt-burger span { display: block; height: 1px; background: #222; width: 100%; }

@media (max-width: 1180px) {
	.kt-header__inner { padding: 0 30px; }
	.kt-menu a, .kt-menu--left li::after { font-size: 16px; }
	.kt-menu--left li:not(:last-child)::after { margin-left: 25px; }
}
@media (max-width: 1023px) {
	.kt-header { position: sticky; top: 0; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
	.kt-header__inner { height: 56px; grid-template-columns: 1fr auto; padding: 0 20px; }
	.kt-header__left, .kt-header__right { display: none; }
	.kt-header__logo { text-align: left; padding: 0; }
	.kt-logo { font-size: clamp(19px, 5.6vw, 26px); letter-spacing: .08em; margin-right: 0; }
	.kt-burger { display: flex; }
	.admin-bar .kt-header { top: 46px; }
}

/* mobile menu */
.kt-mobile-nav { position: fixed; inset: 0; z-index: 100; background: #f9f9f5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; padding: 80px 24px 40px; opacity: 0; transition: opacity .25s ease; }
.kt-mobile-nav[hidden] { display: none !important; }
.kt-mobile-nav.is-open { opacity: 1; }
.kt-mobile-nav__close { position: absolute; top: 6px; right: 10px; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.kt-mobile-nav__close svg { width: 24px; height: 24px; stroke: #222; stroke-width: 1.2; fill: none; }
.kt-menu--mobile { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.kt-menu--mobile + .kt-menu--mobile { margin-top: 26px; }
.kt-menu--mobile a { font-family: 'Cormorant Garamond Regular', serif; font-size: 30px; line-height: 1.1; letter-spacing: .12em; color: #222; }
.kt-mobile-nav__contacts { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: 'Montserrat Light', sans-serif; font-size: 14px; letter-spacing: .06em; color: #383634; }
html.kt-nav-open { overflow: hidden; }

/* ---------- content (blocks) ---------- */
.kt-main { display: block; min-height: 50vh; }
.kt-content { display: block; }
.kt-content p, .kt-content h1, .kt-content h2, .kt-content h3, .kt-content h4, .kt-content h5, .kt-content h6, .kt-content figure, .kt-content ul, .kt-content ol { margin: 0; }
.kt-content h1, .kt-content h2, .kt-content h3, .kt-content h4, .kt-content h5, .kt-content h6 { font-weight: 400; }
.kt-section { width: min(917px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.kt-content .wp-block-columns { margin-bottom: 0; flex-wrap: nowrap; }
.kt-content .wp-block-column { min-width: 0; }
.kt-content .wp-block-image img { display: block; height: auto; }
.kt-content .wp-block-image.aligncenter { margin-left: auto; margin-right: auto; display: table; }
.kt-content .wp-block-image a { display: block; }
.kt-content .wp-block-image a:hover img, .kt-card-link:hover { opacity: .88; }
.kt-content a:hover { opacity: .75; }
.kt-content .wp-block-image a:hover { opacity: 1; }
.kt-content .wp-block-group.is-layout-constrained > * { margin-left: 0; }
.kt-line-wrap { width: 100%; }

/* ---------- footer ---------- */
.kt-footer { background: #fafafa; text-align: center; padding: 90px 20px 50px; }
.kt-footer__inner { width: min(917px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.kt-footer__email { font-family: 'Montserrat Light', sans-serif; font-size: 23px; line-height: 1; letter-spacing: 1.1px; color: #333; }
.kt-footer__insta { font-family: 'Montserrat Light', sans-serif; font-size: 20px; line-height: 1; letter-spacing: 2.4px; color: #080808; margin-top: 19px; }
.kt-footer__phone { font-family: 'Montserrat Light', sans-serif; font-size: 8px; line-height: 1; letter-spacing: 1.6px; color: #77736d; margin-top: 20px; }
.kt-footer__line { width: 100%; border-top: 1px solid #ebe3ce; margin-top: 45px; }
.kt-footer a:hover { opacity: .6; }

/* ---------- 404 ---------- */
.kt-404 { text-align: center; padding: 120px 0; }
.kt-404__code { font-family: 'Cormorant Garamond Light', serif; font-size: 90px; line-height: 1; margin: 0 0 10px; }
.kt-404__text { font-family: 'Cormorant Garamond Regular', serif; font-size: 22px; margin: 0 0 30px; }
.kt-btn { display: inline-block; border: 1px solid #222; padding: 14px 34px; font-family: 'Montserrat Regular', sans-serif; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #343434; }
.kt-btn:hover { background: #222; color: #eeeae4; }

/* ---------- phones: better readability and spacing ---------- */
@media (max-width: 781px) {
	.kt-content .wp-block-columns { flex-wrap: wrap !important; row-gap: 26px; }
	.kt-content .wp-block-column { flex-basis: 100% !important; }
	.kt-content .wp-block-column:empty, .kt-content .wp-block-column.kt-col-empty { display: none; }
	.kt-content .wp-block-columns.kt-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
	.kt-content .wp-block-columns.kt-cards > .wp-block-column { flex-basis: auto !important; }
}
@media (max-width: 767px) {
	.kt-section[style*="padding-top:60px"] { padding-top: 28px !important; }
	.kt-section[style*="padding-bottom:60px"] { padding-bottom: 36px !important; }
	.kt-content [style*="text-align:left"], .kt-content .has-text-align-left { text-align: left; }
	.kt-content .wp-block-image img[style*="width:"] { width: 100% !important; }
	.kt-footer { padding: 56px 20px 40px; }
	.kt-footer__email { font-size: 19px; }
	.kt-footer__insta { font-size: 16px; margin-top: 16px; }
	.kt-footer__phone { font-size: 12px; margin-top: 16px; }
}

/* Barcelona pages: quote box and numbered titles with side lines (as on the original) */
.kt-quote { position: relative; }
.kt-quote::before { content: '\201C'; position: absolute; left: 18px; top: 8px; font-family: 'Cormorant Garamond Regular', serif; font-size: 44px; line-height: 1; color: #6b6b6b; }
.kt-content .kt-lined { display: flex; align-items: center; gap: 16px; }
.kt-content .kt-lined::before, .kt-content .kt-lined::after { content: ''; flex: 1 1 0; border-top: 1px solid #d6d1c4; }
@media (max-width: 767px) { .kt-content .kt-lined { gap: 10px; } .kt-quote { padding-left: 40px !important; } .kt-quote::before { left: 10px; } }

/* ---------- venue header (small line → big name → intro + cover), shared by all venue pages ---------- */
.kt-content .kt-fit { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 781px) {
	/* phones: name, then the cover, then the intro */
	.kt-content .kt-venue-head { display: flex !important; flex-direction: column; row-gap: 0; }
	.kt-content .kt-venue-head > .wp-block-column { display: contents; }
	.kt-content .kt-venue-head__place { order: 1; }
	.kt-content .kt-venue-head__name { order: 2; }
	.kt-content .kt-venue-head__cover { order: 3; margin-top: 22px !important; }
	.kt-content .kt-venue-head__intro { order: 4; margin-top: 22px !important; }
}

/* ---------- pricing / hidden pages ---------- */
.kt-content .kt-price-head { gap: 12px; }
.kt-content .kt-price-intro { align-items: center; }
.kt-content .wp-block-embed { margin: 0; }
.kt-content .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
@media (max-width: 781px) {
	.kt-content .kt-price-head { display: grid !important; grid-template-columns: 44.5fr 55.5fr; gap: 10px; }
	.kt-content .kt-price-head > .wp-block-column { flex-basis: auto !important; }
	.kt-content .wp-block-columns.kt-cards > .wp-block-column:empty { display: none; }
}

/* package lists (Barcelona photoshoot pages): price title on one line, lists use the full column */
.kt-content .wp-block-group:has(> .kt-package-title) > * { max-width: none !important; }
.kt-content .kt-package-title { white-space: nowrap; font-size: clamp(20px, 2vw, 24px) !important; }

/* ---------- "More weddings in …" under wedding galleries ---------- */
.kt-more { padding: clamp(36px, 7vw, 72px) 0 clamp(20px, 4vw, 40px); border-top: 1px solid #e2dccb; margin-top: clamp(10px, 3vw, 30px); text-align: center; }
.kt-more__title { font-family: 'Cormorant Regular', serif; font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: .04em; color: #222; margin: 0; }
.kt-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(22px, 4vw, 36px); }
.kt-more__card { display: block; color: inherit; }
.kt-more__card:hover { opacity: .88; }
.kt-more__img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
.kt-more__name { display: block; margin-top: 12px; font-family: 'Montserrat Regular', sans-serif; font-size: 13px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #383634; }
.kt-content .kt-more__all, .kt-more__all { margin: clamp(26px, 4vw, 36px) 0 0; font-family: 'Montserrat Regular', sans-serif; font-size: 13px; letter-spacing: .08em; }
.kt-more__all a { color: #383634; border-bottom: 1px solid #c9c1ad; padding-bottom: 2px; }
.kt-content .kt-more__cta, .kt-more__cta { margin: 28px 0 0; }
@media (max-width: 767px) {
	.kt-more__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.kt-more__grid .kt-more__card:nth-child(3) { display: none; }
	.kt-more__all a, .kt-more__cta .kt-btn { display: inline-block; min-height: 44px; line-height: 44px; padding-top: 0; padding-bottom: 0; }
	.kt-more__all a { border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c9c1ad; }
}
.kt-more__grid--2 { grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center; }
.kt-more__place { display: block; margin-top: 4px; font-family: 'Montserrat Regular', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8f8267; }

/* ---------- venue tiles on the hub pages: rows, every tile the same size ----------
   6-track grid, each tile spans 2 (so a short last row can be centred). Each tile is a subgrid of
   3 rows (photo / caption / description): captions and descriptions line up across a row even
   when one of them wraps onto two lines. */
.kt-content .kt-tiles { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 20px; row-gap: clamp(28px, 3.5vw, 40px); }
.kt-content .kt-tiles > .kt-tile { grid-column: span 2; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; min-width: 0; }
.kt-content .kt-tiles > .kt-tile > * { min-width: 0; }
.kt-content .kt-tiles > .kt-tile:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
.kt-content .kt-tiles > .kt-tile:nth-child(3n+2):last-child { grid-column: 4 / span 2; }
.kt-content .kt-tiles > .kt-tile:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
.kt-content .kt-tile .wp-block-image { margin: 0 !important; }
.kt-content .kt-tile .wp-block-image img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.page-id-1188 .kt-content .kt-tile .wp-block-image img { aspect-ratio: 4 / 5; }
@media (max-width: 767px) {
	.kt-content .kt-tiles { grid-template-columns: repeat(4, 1fr); column-gap: 14px; row-gap: 26px; }
	.kt-content .kt-tiles > .kt-tile,
	.kt-content .kt-tiles > .kt-tile:nth-child(3n+1):nth-last-child(2),
	.kt-content .kt-tiles > .kt-tile:nth-child(3n+2):last-child,
	.kt-content .kt-tiles > .kt-tile:nth-child(3n+1):last-child { grid-column: span 2; }
	.kt-content .kt-tiles > .kt-tile:nth-child(2n+1):last-child { grid-column: 2 / span 2; }
	.kt-content .kt-tile > p { font-size: 13px !important; line-height: 1.35 !important; letter-spacing: .08em !important; }
	.kt-content .kt-tile > p + p { font-size: 15px !important; letter-spacing: 0 !important; }
}

/* ---------- hub pages: the big heading lines are one H1; the small italic line keeps its look ---------- */
.kt-content .kt-hub-h1 { margin-top: 0 !important; }
.kt-content .kt-h1-kicker { display: block; margin-bottom: 20px; font-family: 'Cormorant Light', serif; font-style: italic; font-size: 48px; line-height: 1; letter-spacing: 0; color: #444444; }
.page-id-1188 .kt-content .kt-h1-kicker { line-height: .6; color: #383634; }
.kt-content .kt-hub-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c1ad; }
@media (max-width: 767px) { .kt-content .kt-h1-kicker { font-size: 32px; } }
