/*
Theme Name: Kitchen Wardrobe
Theme URI: https://kitchenwardrobe.ie
Description: Custom theme for Kitchen Wardrobe: bespoke kitchens and fitted wardrobes. Texts and photos are edited under "Site texts" and "Gallery" (needs the Kitchen Wardrobe Core must-use plugin).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: Kitchen Wardrobe
License: Proprietary
Text Domain: kitchenwardrobe
Update URI: https://kitchenwardrobe.ie/theme
*/

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--charcoal: #232323;
	--ink: #1a1a1a;
	--brass: #c99a2b;
	--brass-dark: #8a6516;
	--neutral: #eae7df;
	--paper: #f6f4ef;
	--line: #ddd8cc;
	--body: #4a4740;
	--muted-dark: #d6d2c8;
	--muted-darker: #a9a396;
	--radius: 4px;
	--wrap: 1200px;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--section: clamp(64px, 9vw, 96px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--charcoal);
	background: var(--paper);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.screen-reader-text, .hp-field {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000;
	background: var(--brass); color: var(--charcoal); padding: 12px 18px; border-radius: var(--radius); font-weight: 600;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section--neutral { background: var(--neutral); }
.section--dark { background: var(--charcoal); color: var(--neutral); }
.section--tight-top { padding-top: 0; }
.kicker {
	color: var(--brass-dark); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.section--dark .kicker, .hero .kicker { color: var(--brass); font-size: 14px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted-dark); max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.prose p + p { margin-top: 16px; }
.prose p { line-height: 1.7; color: var(--body); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.link-strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	padding: 14px 26px; border-radius: var(--radius); font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--brass { background: var(--brass); color: var(--charcoal); }
.btn--brass:hover { background: #d9ad45; color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--paper); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { border-color: var(--neutral); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--charcoal); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: flex; flex-shrink: 0; }
.site-logo img { height: 60px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.lang-pl .site-nav ul { column-gap: 20px; }
.site-nav a { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { white-space: nowrap; }
.label-short { display: none; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 6px; text-decoration: none; border-radius: var(--radius); color: var(--charcoal); }
.lang-switch a:hover { background: var(--line); }
.lang-switch a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--brass); }
.header-phone { font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
	width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--charcoal);
}
@media (max-width: 1160px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; }
	.site-nav { order: 3; width: 100%; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 12px; border-top: 1px solid var(--line); }
	.site-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav a[aria-current="page"] { color: var(--brass-dark); border-bottom-color: var(--line); }
	.header-actions { margin-left: auto; }
	.no-js .site-nav { display: block; }
}
@media (max-width: 560px) {
	.site-logo img { height: 46px; }
	.header-phone { display: none; }
	.header-actions { gap: 8px; }
	.header-actions .btn { padding: 10px 14px; }
	.lang-switch a { min-width: 32px; padding: 0 4px; }
	.label-long { display: none; }
	.label-short { display: inline; }
}
@media (max-width: 400px) {
	.site-logo img { height: 38px; }
	.header-actions { gap: 6px; }
	.header-actions .btn { padding: 10px 10px; font-size: 14px; }
	.lang-switch a { min-width: 28px; padding: 0 2px; }
	.nav-toggle { width: 44px; height: 44px; }
}

/* ---------- Heroes ---------- */
.hero { background: var(--charcoal); color: var(--neutral); }
.hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.hero__text h1 { color: var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__media { flex: 1 1 520px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.page-hero { background: var(--charcoal); color: var(--neutral); }
.page-hero .wrap { padding-top: clamp(56px, 7vw, 80px); padding-bottom: clamp(56px, 7vw, 80px); display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { color: var(--paper); font-size: clamp(38px, 5.5vw, 64px); }
.breadcrumb { font-size: 14px; color: var(--muted-darker); }
.breadcrumb a { color: var(--muted-dark); }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid--photos { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card p { color: var(--body); }
.card__num { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--brass-dark); }
.feature-link { text-decoration: none; display: flex; flex-direction: column; gap: 20px; }
.feature-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .2s ease; }
.feature-link:hover img { opacity: .92; }
.feature-link h2 { font-size: clamp(32px, 3.4vw, 40px); }
.feature-link p { color: var(--body); }
.feature-link__more { font-weight: 600; border-bottom: 2px solid var(--brass); align-self: flex-start; padding-bottom: 4px; }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.tile h3 { font-size: 26px; }
.tile p { color: var(--body); font-size: 15px; }
.photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-weight: 600; font-size: 15px; }
.usp { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--brass); padding-top: 20px; }
.usp h3 { font-size: 26px; }
.usp p { color: var(--body); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split--reverse { flex-wrap: wrap-reverse; }
.split__media { flex: 1 1 520px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.split__text h2 { font-size: clamp(32px, 3.8vw, 44px); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; flex: 1 1 520px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ticks svg { flex-shrink: 0; margin-top: 1px; }
.included { display: flex; flex-wrap: wrap; gap: 56px; }
.included__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.included__text h2 { font-size: clamp(32px, 3.8vw, 44px); }

/* Services (alternating rows) */
.service { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.service + .service { margin-top: var(--section); }
.service:nth-child(even) { flex-direction: row-reverse; }
.service__media { flex: 1 1 480px; }
.service__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service__text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }

/* Process steps (About) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps__num {
	width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brass); color: var(--brass-dark);
	display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px;
}
.steps h3 { font-size: 26px; }
.steps p { color: var(--body); }

/* Quotes */
.quote { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; color: var(--paper); }
.quote figcaption { font-size: 15px; color: var(--brass); font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.review figcaption { font-weight: 600; color: var(--brass-dark); font-size: 15px; }

/* CTA band */
.cta { background: var(--brass); padding: 72px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(30px, 3.8vw, 44px); color: var(--charcoal); }
.cta p { font-size: 17px; color: var(--charcoal); margin-top: 8px; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
	min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
	font: 500 15px/1.2 var(--sans); color: var(--charcoal); cursor: pointer;
}
.filters button:hover { border-color: var(--brass); }
.filters button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-item[hidden] { display: none; }
.gallery-item__open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-item__open:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } .gallery-item__open:hover img { transform: none; } }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 2px; }
.gallery-item figcaption strong { font-weight: 600; font-size: 15px; }
.gallery-item figcaption span { font-size: 14px; color: var(--body); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 20, 20, .92); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(96vh - 90px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--paper); font-weight: 500; text-align: center; }
.lightbox__btn {
	position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12);
	color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-form { flex: 1 1 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.contact-form__title { font-size: clamp(30px, 3.4vw, 36px); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-weight: 600; font-size: 15px; }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9b3a5; border-radius: var(--radius);
	font: 400 16px/1.4 var(--sans); color: var(--charcoal); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--charcoal); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.form-check { display: flex; gap: 12px; align-items: flex-start; }
.form-check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--charcoal); }
.form-check label { font-size: 15px; line-height: 1.5; color: var(--body); }
.form-note { font-size: 14px; color: var(--body); }
.contact-form .btn { align-self: flex-start; }
.form-notice { border-radius: var(--radius); padding: 18px 20px; }
.form-notice ul { margin: 8px 0 0; padding-left: 20px; }
.form-notice--error { background: #fbeaea; border: 1px solid #e3b4b0; color: #6b1d17; }
.form-notice--ok { background: #eef5ea; border: 1px solid #b9d3ad; color: #24451a; font-size: 18px; padding: 32px; flex: 1 1 560px; }
.contact-aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: var(--charcoal); color: var(--neutral); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-card h2 { color: var(--paper); font-size: 32px; }
.contact-card a { color: var(--paper); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.contact-card a:hover { color: var(--brass); }
.contact-card svg { flex-shrink: 0; }
.contact-card p { color: var(--muted-dark); }

/* ---------- Generic page content (privacy policy) ---------- */
.entry { max-width: 760px; }
.entry h2 { font-size: 32px; margin: 40px 0 12px; }
.entry p, .entry li { color: var(--body); line-height: 1.7; }
.entry p + p { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 72px 0 32px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-title { color: var(--brass); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.footer-logo { background: var(--paper); border-radius: var(--radius); padding: 10px 14px; align-self: flex-start; }
.footer-logo img { height: 56px; width: auto; }
.footer-about { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #3a3834; border-radius: 50%; }
.footer-bottom { border-top: 1px solid #3a3834; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-darker); }
.footer-bottom a { color: var(--muted-darker); }

/* ---------- Print ---------- */
@media print {
	.site-header, .cta, .site-footer, .filters, .nav-toggle { display: none !important; }
	body { background: #fff; }
}
