/* The Hive NH — site styles */

:root {
	--honey: #e0a526;
	--honey-deep: #b97f0c;
	--honey-light: #f6d365;
	--honey-pale: #fff3cc;
	--cream: #fff8e6;
	--paper: #fffdf8;
	--ink: #2e2a26;
	--ink-soft: #5f574e;
	--line: #eadfc8;
	--white: #fff;
	--danger: #b3261e;
	--success: #2f6b3a;

	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Playfair Display", Georgia, serif;
	--font-script: "Great Vibes", cursive;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(84, 60, 10, .10);
	--shadow-sm: 0 3px 10px rgba(84, 60, 10, .08);
	--container: 1160px;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--honey-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.script { font-family: var(--font-script); font-size: 1.9rem; line-height: 1; color: var(--honey-deep); margin: 0 0 .25em; }
.kicker {
	display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--honey-deep); background: var(--honey-pale); padding: 6px 14px; border-radius: 999px; margin-bottom: 1.2em;
}

/* Buttons --------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 800 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #46403a; color: var(--white); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

/* Honeycomb decoration -------------------------------------------------- */

.honeycomb { position: absolute; color: var(--honey); pointer-events: none; z-index: 0; }
.honeycomb--hero { width: 300px; top: -20px; right: -40px; opacity: .55; }
.honeycomb--order { width: 260px; bottom: -30px; left: -60px; opacity: .35; transform: rotate(180deg); }
.honeycomb--footer { width: 200px; bottom: -60px; right: -30px; opacity: .18; }

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 253, 248, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* admin bar scrolls away on phones */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-logo img, .site-logo .custom-logo { width: auto; height: 68px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover { border-bottom-color: var(--honey); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--ink); position: relative; transition: transform .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
	.site-logo img, .site-logo .custom-logo { height: 52px; }
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 8px 20px 20px; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 16px; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(ellipse at 85% 30%, var(--honey-pale), transparent 60%), var(--cream);
	padding: clamp(48px, 8vw, 96px) 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__media { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__hex {
	aspect-ratio: 0.866; /* pointy-top hexagon */
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--honey);
	padding: 8px;
	filter: drop-shadow(0 20px 30px rgba(84, 60, 10, .18));
}
.hero__hex img {
	width: 100%; height: 100%; object-fit: cover;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hero__trail { position: absolute; width: 190px; left: -120px; bottom: 30px; color: var(--ink); opacity: .7; }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
	.hero h1, .lede { margin-left: auto; margin-right: auto; }
	.hero__actions { justify-content: center; }
	.hero__media { width: min(300px, 78%); }
	.hero__trail { display: none; }
	.honeycomb--hero { width: 200px; right: -70px; }
}

/* Sections -------------------------------------------------------------- */

.section { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 104px) 0; }
.section--honey { background: linear-gradient(180deg, var(--honey-pale), var(--cream)); }
.section--cream { background: var(--cream); }
.section--order { background: linear-gradient(180deg, var(--paper), var(--honey-pale)); }
.section > .container { position: relative; z-index: 1; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--ink-soft); }

/* Products -------------------------------------------------------------- */

.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product p { color: var(--ink-soft); margin: 0; }
.product__icon {
	display: grid; place-items: center; width: 68px; height: 78px; margin-bottom: 18px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--honey-light); color: var(--ink);
}
.product__icon .icon { width: 34px; height: 34px; }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* Steps ----------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step-card { position: relative; text-align: center; padding: 8px 10px; }
.step-card__num {
	display: grid; place-items: center; width: 58px; height: 66px; margin: 0 auto 16px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--ink); color: var(--honey-light); font: 800 1.4rem var(--font-body);
}
.step-card p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Gallery --------------------------------------------------------------- */

.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin-bottom: 18px; }
.gallery__link { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--line); }
.gallery__link img { width: 100%; transition: transform .4s ease; }
.gallery__link:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 12px; } .gallery__item { margin-bottom: 12px; } }

/* Lightbox -------------------------------------------------------------- */

.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(28, 24, 20, .92);
	display: grid; place-items: center; padding: 40px 60px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #f3ead6; margin: 0; padding: 0 20px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; cursor: pointer; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 12px; } .lightbox__nav { top: auto !important; bottom: 50px; transform: none !important; } }

/* About ----------------------------------------------------------------- */

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about__media { background: var(--white); border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); padding: 48px 36px; box-shadow: var(--shadow); }
.about__copy p { color: var(--ink-soft); }
.about__place { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink) !important; }
.about__place .icon { width: 22px; height: 22px; color: var(--honey-deep); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } .about__media { max-width: 420px; margin: 0 auto; } }

/* Order form ------------------------------------------------------------ */

.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.order-form fieldset { border: 0; margin: 0 0 30px; padding: 0; }
.order-form legend { display: flex; align-items: center; gap: 12px; font: 700 1.3rem var(--font-head); margin-bottom: 16px; padding: 0; }
.order-form .step {
	display: inline-grid; place-items: center; width: 34px; height: 38px; font: 800 1rem var(--font-body);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--honey-light);
}
.grid { display: grid; gap: 0 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

.field { margin: 0 0 18px; }
.field > label:first-child { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

.order-form input[type="text"], .order-form input[type="email"], .order-form input[type="tel"],
.order-form input[type="number"], .order-form input[type="date"], .order-form select, .order-form textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--paper);
	border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 50px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.order-form textarea { resize: vertical; min-height: 0; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
	outline: none; border-color: var(--honey); box-shadow: 0 0 0 4px rgba(224, 165, 38, .2); background: var(--white);
}
.order-form input:user-invalid, .order-form select:user-invalid, .order-form textarea:user-invalid { border-color: var(--danger); }

.dropzone {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	min-height: 104px; padding: 16px; border: 2px dashed var(--honey); border-radius: var(--radius-sm);
	background: var(--honey-pale); cursor: pointer; transition: background-color .15s ease;
}
.dropzone:hover, .dropzone.is-drag { background: #ffe9a8; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { box-shadow: 0 0 0 4px rgba(224, 165, 38, .3); }
.dropzone__text { font-weight: 800; }
.dropzone__hint { font-size: .82rem; color: var(--ink-soft); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--cream); border-radius: 8px; margin-top: 6px; }
.file-list li.is-bad { background: #fde8e6; color: var(--danger); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.order-submit { text-align: center; padding-top: 8px; }
.order-submit .btn { width: 100%; max-width: 420px; }
.order-submit .btn[disabled] { opacity: .6; cursor: progress; }
.order-note { color: var(--ink-soft); font-size: .92rem; margin-top: 14px; }

.order-alert { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 26px; }
.order-alert:focus { outline: none; }
.order-alert--success { background: #e7f4e8; color: var(--success); border: 1px solid #b9dcbd; }
.order-alert--success strong { display: block; font-size: 1.1rem; }
.order-alert--error { background: #fde8e6; color: var(--danger); border: 1px solid #f3c2bd; }

/* Footer ---------------------------------------------------------------- */

.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #e9e1d2; padding: 64px 0 0; }
.site-footer a { color: var(--honey-light); }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.35rem; }
.site-footer .btn--primary { background: var(--honey-light); color: var(--ink); }
.site-footer .btn--primary:hover { background: var(--white); color: var(--ink); }
.site-footer__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer__brand .script { font-size: 2.6rem; color: var(--honey-light); margin: 10px 0 6px; }
.footer-email { font-weight: 800; font-size: 1.1rem; word-break: break-all; }
.site-footer__legal { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 20px; font-size: .88rem; color: #b5ab9b; }
.site-footer__legal p { margin: 0; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; text-align: center; } .site-footer__brand img { margin: 0 auto; } }

/* Generic page content -------------------------------------------------- */

.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
