/* The Clock Tower: styles theme.json can't express (spec 5.4 to 5.6, 6.1, 6.7, 6.9). */

/* ---------- Layout ---------- */
@media (max-width: 639px) {
	/* Beats WordPress's `:root :where(body)` declaration of these variables. */
	:root body {
		--wp--style--root--padding-left: 24px;
		--wp--style--root--padding-right: 24px;
	}
}

/* ---------- Interaction (5.4) ---------- */
a,
.wp-block-button__link {
	transition: color .3s ease, background-color .3s ease, border-color .3s ease, text-decoration-color .3s ease;
}
a {
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

/* ---------- Buttons (5.5) ---------- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	box-sizing: border-box;
}

/* Primary on a dark hero: white fill, navy text. */
.ct-hero .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.ct-hero .wp-block-button.is-style-fill .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	font-size: 17px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-text-link .wp-block-button__link {
	min-height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--orange);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .09em;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover,
.wp-block-button.is-style-text-link .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--navy);
	text-decoration-color: currentColor;
}

/* ---------- Dark bands (Plan Your Visit, footer) ---------- */
.ct-dark,
.ct-dark p {
	color: var(--wp--preset--color--text-on-navy);
}
.ct-dark :is(h1, h2, h3) {
	color: var(--wp--preset--color--white);
}
.ct-dark a:not(.wp-element-button) {
	color: var(--wp--preset--color--text-on-navy);
	text-decoration: underline;
	text-decoration-color: transparent;
}
.ct-dark a:not(.wp-element-button):hover,
.ct-dark a:not(.wp-element-button):focus-visible {
	color: var(--wp--preset--color--orange-light);
	text-decoration-color: currentColor;
}
/* Footer-style link (e.g. Get Directions on navy). */
.ct-dark .wp-block-button.is-style-text-link .wp-block-button__link {
	color: var(--wp--preset--color--text-on-navy);
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	text-underline-offset: 5px;
}
.ct-dark .wp-block-button.is-style-text-link .wp-block-button__link:hover,
.ct-dark .wp-block-button.is-style-text-link .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--orange-light);
}

/* ---------- Header (6.1) ---------- */
.ct-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
/* The supplied logo is a square JPG with wide margins: crop it to 160 x 110 until a cropped/SVG logo arrives. */
.ct-header .wp-block-site-logo a {
	display: block;
	width: 160px;
	height: 110px;
	overflow: hidden;
}
.ct-header .wp-block-site-logo img {
	width: 220px !important;
	height: 220px !important;
	max-width: none;
	margin: -55px 0 0 -30px;
}

.ct-main-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 3px solid transparent;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .3s ease, border-color .3s ease;
}
.ct-main-nav .wp-block-navigation-item__content:hover,
.ct-main-nav .wp-block-navigation-item__content:focus-visible,
.ct-main-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--orange);
	text-decoration: none;
}

/* ---------- Footer (6.9) ---------- */
.ct-wordmark {
	color: var(--wp--preset--color--white) !important;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
}
.ct-est {
	color: var(--wp--preset--color--orange-light) !important;
	font-family: var(--wp--preset--font-family--baskerville);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ct-footer-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 16px;
}
.ct-copyright {
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: var(--wp--preset--color--muted-on-navy) !important;
}

/* ---------- Social icons (5.5) ---------- */
.ct-socials {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ct-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.ct-socials a:hover,
.ct-socials a:focus-visible {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}
/* On the orange Instagram band. */
.ct-socials--light a {
	border-color: rgba(255, 255, 255, .7);
}
.ct-socials--light a:hover,
.ct-socials--light a:focus-visible {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
}

/* Template parts and main sit flush against each other. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Hero (4.2) ---------- */
/* No Featured Image: fall back to solid navy photo color. */
.ct-hero {
	background-color: var(--wp--preset--color--navy-photo);
}
.ct-hero h1 {
	margin: 0;
}

/* Page content sections sit flush; each pattern owns its own padding. */
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* ---------- Intro statement (5.2) ---------- */
.ct-statement {
	margin-inline: auto;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--baskerville);
	font-size: var(--wp--preset--font-size--statement);
	line-height: 1.5;
	text-wrap: balance;
}
h1, h2 {
	text-wrap: balance;
}

/* ---------- Cards (5.6) ---------- */
.ct-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	box-sizing: border-box;
}
.ct-shop-grid .ct-card {
	transition: transform .3s ease, box-shadow .3s ease;
}
.ct-shop-grid .ct-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(5, 52, 79, .12);
}
.ct-card h3,
.ct-dark .ct-card h3 {
	margin: 0;
	color: var(--wp--preset--color--navy);
}
.ct-card p {
	color: var(--wp--preset--color--body);
}

.ct-logo-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	padding: 24px;
	box-sizing: border-box;
	background: var(--wp--preset--color--cream-light);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ct-logo-tile img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ct-logo-tile__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 140px;
	border: 3px solid var(--wp--preset--color--navy);
	border-radius: 50%;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 44px;
	font-weight: 600;
	letter-spacing: .04em;
}

/* "Learn More" text link. */
.ct-learn-more,
.ct-dark .ct-card .ct-learn-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.ct-learn-more:hover,
.ct-learn-more:focus-visible,
.ct-dark .ct-card .ct-learn-more:hover,
.ct-dark .ct-card .ct-learn-more:focus-visible {
	color: var(--wp--preset--color--navy);
	text-decoration-color: currentColor;
}

/* Explore cards: photo on top, centered body fills the rest. */
.ct-explore > .wp-block-image {
	margin: 0;
	width: 100%;
}
.ct-explore > .wp-block-image img {
	display: block;
	width: 100%;
}
.ct-explore__body {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
}
.ct-explore__body p {
	max-width: 440px;
}

/* Full-width photo band. */
.ct-band-photo img {
	display: block;
	width: 100%;
}

/* Comfortable line length for standalone paragraphs. */
.ct-measure {
	max-width: 760px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

/* ---------- Our Shops directory (6.3) ---------- */
.ct-dir__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.ct-dir__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ct-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	background: transparent;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 2px;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	transition: background-color .3s ease, color .3s ease;
}
.ct-chip__count {
	color: var(--wp--preset--color--chip-count);
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	transition: color .3s ease;
}
.ct-chip:hover,
.ct-chip[aria-pressed="true"] {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}
.ct-chip:hover .ct-chip__count,
.ct-chip[aria-pressed="true"] .ct-chip__count {
	color: var(--wp--preset--color--muted-on-navy);
}
.ct-dir__count {
	margin: 0;
	color: var(--wp--preset--color--body);
	font-size: 19px;
}

.ct-dir__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
	gap: 32px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}
.ct-dir__item[hidden],
.ct-dir__empty[hidden] {
	display: none !important;
}
.ct-dir .ct-card,
.ct-related .ct-card {
	transition: transform .3s ease, box-shadow .3s ease;
}
.ct-dir .ct-card:hover,
.ct-related .ct-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(5, 52, 79, .12);
}
.ct-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 28px 32px 24px;
}
.ct-card__title {
	font-size: var(--wp--preset--font-size--card-title);
}
.ct-dir__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
	text-align: center;
}

/* ---------- Paragraph color (5.1): body text on light backgrounds ---------- */
:where(.wp-site-blocks p:not(.has-text-color)) {
	color: var(--wp--preset--color--body);
}
.ct-hero p:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

/* ---------- Single business (6.6) ---------- */
.ct-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}
.ct-two-col > * {
	margin-block-start: 0;
}
.ct-overview {
	padding-top: 44px;
}
.ct-overview p {
	line-height: 1.65;
}
@media (max-width: 900px) {
	.ct-two-col {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.ct-overview {
		padding-top: 0;
	}
}

.ct-info {
	display: flex;
	flex-direction: column;
	padding: 40px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	box-sizing: border-box;
}
.ct-info__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 2.8vw, 36px);
	line-height: 1.05;
}
.ct-info__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ct-info__row:last-of-type {
	padding-bottom: 28px;
	border-bottom: 0;
}
.ct-info__row h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--row-title);
	line-height: 1.2;
}
.ct-info__row p,
.ct-info__link {
	margin: 0;
	font-size: var(--wp--preset--font-size--info);
	line-height: 1.5;
}
.ct-info__link {
	align-self: flex-start;
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
}
.ct-info__link:hover,
.ct-info__link:focus-visible {
	color: var(--wp--preset--color--orange);
	text-decoration-color: currentColor;
}
.ct-info__email {
	overflow-wrap: anywhere;
}
.ct-info__website .wp-block-button__link {
	width: 100%;
}
.ct-socials--navy a {
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

/* Related cards: excerpt clamped to 3 lines, Learn More pinned to the bottom. */
.ct-related > li {
	display: flex;
}
.ct-related > li > .ct-card {
	width: 100%;
}
.ct-related .ct-card__body {
	flex: 1;
	gap: 10px;
}
.ct-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.ct-related .ct-learn-more {
	margin-top: auto;
}
.ct-dir__grid.ct-related {
	margin-top: 56px;
}

/* ---------- Clickable cards ---------- */
a.ct-logo-tile {
	text-decoration: none;
}
.ct-card__title a,
.ct-card__title a:hover,
.ct-card__title a:focus-visible,
.ct-dark .ct-card .ct-card__title a,
.ct-dark .ct-card .ct-card__title a:hover {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* Font Awesome glyphs in the circular social buttons. */
.ct-socials .fa-brands {
	font-size: 20px;
	line-height: 1;
}

/* Icon buttons never underline (beats the dark-band and global link hover rules). */
.ct-socials a,
.ct-socials a:hover,
.ct-socials a:focus-visible {
	text-decoration: none !important;
}

/* ---------- Visit + About (6.4, 6.5) ---------- */
.ct-map {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	background: var(--wp--preset--color--navy-photo);
}
.ct-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.ct-panel {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
}
.ct-panel__title {
	margin: 0;
	font-size: clamp(28px, 2.8vw, 36px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0;
}
.ct-rounded img,
.ct-wrap-img img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

/* Long copy wraps beside a left-floated photo, then runs full width. */
.ct-wrap {
	display: flow-root;
}
.ct-wrap > .ct-wrap-img.alignleft {
	float: left;
	width: min(520px, 100%);
	margin: 0 56px 28px 0;
}
.ct-wrap > h2 {
	margin-top: 0;
}
@media (max-width: 700px) {
	.ct-wrap > .ct-wrap-img.alignleft {
		float: none;
		width: 100%;
		margin: 0 0 28px;
	}
}

/* ---------- Instagram band (6.8) ---------- */
.ct-ig-band__row {
	margin: 0;
}
.ct-ig-band__row p {
	margin: 0;
}
.ct-ig-feed {
	margin: 0;
}
.ct-ig-feed #sb_instagram {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}
.ct-ig-feed #sb_instagram #sbi_images {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 !important;
	width: 100% !important;
	padding: 0 !important;
}
@media (max-width: 700px) {
	.ct-ig-feed #sb_instagram #sbi_images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.ct-ig-feed #sb_instagram .sbi_item {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: opacity .3s ease;
}
.ct-ig-feed #sb_instagram .sbi_item:hover {
	opacity: .82;
}
.ct-ig-feed #sb_instagram .sbi_photo_wrap,
.ct-ig-feed #sb_instagram .sbi_photo {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	height: auto !important;
	padding: 0 !important;
}
/* Portrait reels and landscape shots alike are cropped to fill a square tile. */
.ct-ig-feed #sb_instagram .sbi_photo img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

/* ---------- Phones (under 600px) ---------- */
@media (max-width: 639px) {
	.ct-footer-nav.wp-block-navigation,
	.ct-footer-nav .wp-block-navigation__container {
		column-gap: 24px !important;
	}
	.ct-info {
		padding: 28px 24px;
	}
}

/* Phone and email links: 44px touch target (5.4). */
.ct-info__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.ct-info__row {
	gap: 0;
}
.ct-info__row h3 + p {
	margin-top: 6px;
}
.ct-info__row h3 + .ct-socials {
	margin-top: 12px;
}

/* ---------- Mobile header (under 640px): logo centered, hamburger centered below it ---------- */
@media (max-width: 639px) {
	.ct-header__inner {
		flex-direction: column;
		justify-content: center !important;
		align-items: center !important;
		row-gap: 4px !important;
	}
}
.ct-main-nav .wp-block-navigation__responsive-container-open,
.ct-main-nav .wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--navy);
}
.ct-main-nav .wp-block-navigation__responsive-container-open svg,
.ct-main-nav .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}
/* Core switches to the overlay at 600px; keep the hamburger up to 639px. */
@media (max-width: 639px) {
	.ct-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex !important;
	}
	.ct-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}
@media (min-width: 640px) {
	.ct-main-nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}
}

/* Open overlay: links stacked and centered vertically, current page underlined. */
.ct-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}
.ct-main-nav .is-menu-open .wp-block-navigation__responsive-close,
.ct-main-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	height: 100%;
}
.ct-main-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	min-height: 100%;
	padding-top: 0 !important;
	justify-content: center;
}
.ct-main-nav .is-menu-open .wp-block-navigation__container {
	gap: 16px !important;
	justify-content: center !important;
}
.ct-main-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 28px;
}
