/*
 * HN Coastal shared components.
 * Ported from site-mockup/index.html <style>, scoped under .hn- prefixes
 * so nothing collides with Gutenberg block styles.
 * Palette comes from theme.json preset custom properties.
 */

/* ---- eyebrow (mockup .eyebrow) ---- */
.hn-eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--azure-deep);
	margin-bottom: 8px;
}
.has-marine-background-color .hn-eyebrow,
.has-marine-2-background-color .hn-eyebrow,
.has-ink-background-color .hn-eyebrow,
.wp-block-cover .hn-eyebrow {
	color: var(--wp--preset--color--azure);
}

/* ---- buttons (mockup .btn.p / .btn.g) ---- */
.hn-btn,
.hn-btn-primary .wp-block-button__link,
.hn-btn-ghost .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	font-size: 0.76rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	cursor: pointer;
	transition: 0.3s;
	border: 1px solid transparent;
	border-radius: 0;
	text-decoration: none;
}
.hn-btn-primary .wp-block-button__link,
button.hn-btn.hn-btn-primary {
	background: var(--wp--preset--color--azure);
	color: #04222e;
}
.hn-btn-primary .wp-block-button__link:hover,
button.hn-btn.hn-btn-primary:hover {
	background: #3cc4f5;
	color: #04222e;
}
.hn-btn-ghost .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}
.hn-btn-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--azure);
	color: var(--wp--preset--color--azure);
	background: transparent;
}

/* ---- fixed header (mockup header.nav) ---- */
.hn-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(12, 34, 42, 0.93) !important;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(201, 168, 106, 0.22);
}
.hn-header .hn-brand-logo img {
	filter: brightness(0) invert(1);
}
.hn-brand-title a,
.hn-brand-title {
	color: #fff;
	text-decoration: none;
	line-height: 1;
}
.hn-brand-tag {
	font-size: 0.56rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 500;
	margin: 2px 0 0;
}
.hn-nav a {
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.77rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	transition: 0.25s;
}
.hn-nav a:hover {
	color: var(--wp--preset--color--azure);
}
.hn-nav .hn-navbtn a,
.hn-navbtn > a {
	border: 1px solid var(--wp--preset--color--azure);
	color: var(--wp--preset--color--azure);
	padding: 11px 20px;
	font-size: 0.7rem;
}
.hn-nav .hn-navbtn a:hover,
.hn-navbtn > a:hover {
	background: var(--wp--preset--color--azure);
	color: #04222e;
}
/* clear the fixed header on pages without a full-bleed hero */
.hn-page-offset {
	scroll-margin-top: 96px;
}
main > .hn-page-offset:first-child:not(.hn-title-band) {
	padding-top: 96px;
}

/* ---- hero (mockup .hero) ---- */
.hn-hero {
	align-items: flex-end;
}
.hn-hero .hn-hero-title {
	max-width: 16ch;
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hn-azure-em {
	font-style: italic;
	color: var(--wp--preset--color--azure);
}
.hn-hero .hn-hero-lede {
	max-width: 46ch;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.9);
}

/* ---- card overlay (mockup .ht tiles / update.html .lc cards) ---- */
.hn-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
}
.hn-card .wp-block-post-featured-image {
	margin: 0;
}
.hn-card .wp-block-post-featured-image img {
	transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-card:hover .wp-block-post-featured-image img {
	transform: scale(1.06);
}
.hn-card .wp-block-post-title {
	font-size: 1.4rem;
	padding: 14px 16px 4px;
	margin: 0;
}
.hn-card .wp-block-post-excerpt {
	padding: 0 16px 16px;
	color: var(--wp--preset--color--mist);
	font-size: 0.86rem;
}
/* status ribbons for the meta pass (update.html .rib colors) */
.hn-rib {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 30px;
	color: #fff;
}
.hn-rib--sale { background: #1d9e75; }
.hn-rib--sold { background: #a32d2d; }
.hn-rib--build { background: #9a6b16; }

/* ---- models band pics (mockup .mband .pics, marine-first 1.85fr/1fr) ---- */
.hn-models-pics {
	display: grid;
	grid-template-columns: 1.85fr 1fr;
	gap: 12px;
}
.hn-models-pics .hn-model-pic {
	position: relative;
	overflow: hidden;
	margin: 0;
}
.hn-models-pics .hn-model-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-models-pics .hn-model-pic:hover img {
	transform: scale(1.07);
}
.hn-models-pics figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(transparent, rgba(8, 18, 24, 0.82));
	text-align: left;
}

/* ---- signature line (mockup .ig .sig) ---- */
.hn-sig {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 1.3rem;
	margin-top: 24px;
}
.hn-sig small {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-size: 0.64rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--azure-deep);
	margin-top: 8px;
}

/* ---- CTA lines (mockup .cta .ln .v) ---- */
.hn-cta-line-value,
.hn-cta-line-value a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	color: #fff;
}

/* ---- forms (Tier 1 / Tier 3 placeholders) ---- */
.hn-follow-form,
.hn-estimate-form {
	max-width: 560px;
	margin: 24px auto 0;
}
.hn-form-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
}
.hn-form-label,
.hn-form-legend {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--mist);
}
.hn-follow-band .hn-form-label {
	color: rgba(255, 255, 255, 0.7);
}
.hn-form-legend {
	color: var(--wp--preset--color--azure-deep);
	margin-bottom: 10px;
}
.hn-form-input {
	font-family: inherit;
	font-size: 0.95rem;
	padding: 11px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: #fff;
	color: var(--wp--preset--color--ink);
}
.hn-form-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--azure);
}
.hn-estimate-step {
	border: 1px solid var(--wp--preset--color--line);
	padding: 18px;
	margin-bottom: 18px;
	background: #fff;
}
.hn-form-note {
	font-size: 0.75rem;
	color: var(--wp--preset--color--mist);
	margin-top: 12px;
}
.hn-follow-band .hn-form-note {
	color: rgba(255, 255, 255, 0.6);
}

/* ---- footer ---- */
.hn-footer .hn-brand-logo img {
	filter: brightness(0) invert(1);
}
.hn-footer-blurb {
	color: rgba(255, 255, 255, 0.6);
	max-width: 280px;
	font-weight: 300;
}
.hn-footer-head {
	letter-spacing: 0.2em;
	font-weight: 600;
}
.hn-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.hn-footer-links li {
	margin-bottom: 9px;
}
.hn-footer-links a {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.86rem;
	font-weight: 300;
	text-decoration: none;
}
.hn-footer-links a:hover {
	color: var(--wp--preset--color--azure);
}
.hn-footer-legal {
	color: rgba(255, 255, 255, 0.6);
}
.hn-credit {
	color: var(--wp--preset--color--champagne);
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
	.hn-models-pics {
		grid-template-columns: 1fr;
	}
}


/* ---------------------------------------------------------------------
   Instagram feed (Smash Balloon) inside the "Follow Along" band.
   H&N post a lot of Reels, which are 9:16. Left alone, Smash Balloon sizes
   each tile to its own media, so a row of mixed square posts and vertical
   reels renders ragged. Forcing every tile to one portrait-leaning ratio
   with object-fit:cover keeps the grid even and crops reels sympathetically
   (centre-weighted, so faces and the build stay in frame).
   ------------------------------------------------------------------ */
.insta #sb_instagram .sbi_item,
.insta #sb_instagram .sbi_photo_wrap { position: relative; }

.insta #sb_instagram .sbi_photo,
.insta #sb_instagram .sbi_photo_wrap {
  aspect-ratio: 4 / 5;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
}

.insta #sb_instagram .sbi_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: 1.2s cubic-bezier(.2,.8,.2,1);
}
.insta #sb_instagram .sbi_photo:hover img { transform: scale(1.06); }

/* Reels carry a play/video badge — keep it visible over the crop. */
.insta #sb_instagram .sbi_playbtn,
.insta #sb_instagram .svg-inline--fa { z-index: 2; }

/* Match the site's square-edged, tight-gutter look. */
.insta #sb_instagram { padding: 0 !important; }
.insta #sb_instagram #sbi_images { gap: 12px; }
.insta #sb_instagram .sbi_item { padding: 0 !important; }

@media (max-width: 700px) {
  .insta #sb_instagram .sbi_photo,
  .insta #sb_instagram .sbi_photo_wrap { aspect-ratio: 1 / 1; }
}
