/*
Theme Name:   Westerly Modern
Theme URI:    https://westerlyjewelry.com/
Description:  A modern, showroom-focused theme for the Westerly Jewelry Company. Big featured image on the homepage and Specials page, visit/call calls-to-action (no online sales), Slider Revolution and Fluent Forms support, no page builder. Uses the same page-header settings and shortcodes as the "Westerly Jewelry" theme, so you can switch between them freely.
Author:       Westerly Jewelry Company
Version:      1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  westerly-modern
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #141414;
	--ink-2: #2a2a2a;
	--text: #3d3a36;
	--muted: #77716a;
	--ivory: #faf7f2;
	--sand: #f1ebe2;
	--line: #e4dccf;
	--gold: #b8975a;
	--gold-dark: #8a6d3b;
	--gold-light: #d9c39a;
	--white: #fff;

	--font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--font-body: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--wrap: 1240px;
	--wrap-narrow: 780px;
	--gutter: clamp(18px, 4vw, 40px);
	--header-h: 84px;
	--topbar-h: 38px;
	--radius: 2px;
	--shadow: 0 18px 40px -22px rgba(20,20,20,.35);
	--ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   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; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--text);
	font: 400 17px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
iframe { max-width: 100%; border: 0; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--ink); }

p { margin: 0 0 1.2em; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 1.4em 0 .5em; line-height: 1.15; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h4 { font-size: .9rem; } h5, h6 { font-size: .78rem; }

.eyebrow {
	display: inline-block;
	font: 500 .78rem/1 var(--font-body);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); }

.lead { font-size: 1.18rem; line-height: 1.75; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--gold); }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 1.5em;
	border-left: 2px solid var(--gold);
	font: italic 400 1.6rem/1.45 var(--font-display);
	color: var(--ink);
}
blockquote p { margin-bottom: .6em; }
blockquote small { display: block; font: 500 .78rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
th, td { padding: .7em 1em; border-bottom: 1px solid var(--line); text-align: left; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 1000; padding: 12px 18px; background: var(--white); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* WordPress content classes */
.alignleft { float: left; margin: .3em 2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 2em; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignnone { margin: 1em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5em; }
.entry-content::after, .clearfix::after { content: ""; display: table; clear: both; }
.entry-content .row, .entry-content [class^="span"] { display: block; }
.img-polaroid { padding: 6px; background: var(--white); box-shadow: var(--shadow); }
@media (max-width: 600px) { .alignleft, .alignright { float: none; display: block; margin: 1em auto; } }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #d8d2c8; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: 1em 1.9em;
	font: 500 .8rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; border: 1px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: var(--white);
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
	cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font: 500 .8rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .6em; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Top bar + Header
   ========================================================================== */
.topbar {
	background: var(--ink); color: #bdb5a8;
	font-size: .8rem; letter-spacing: .04em;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--topbar-h); }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.topbar__info li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.topbar__info svg { width: 13px; height: 13px; fill: var(--gold); flex: none; }
.topbar a { color: #e9e2d6; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 860px) { .topbar__hide-sm { display: none !important; } }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(20,20,20,.97);
	-webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
	transition: box-shadow .3s;
}
.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; } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }

.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.is-scrolled .site-header__inner { min-height: 68px; }

.brand { flex: none; line-height: 0; margin: 0; }
.brand a { display: inline-block; }
.brand img { height: 62px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 50px; }
.brand__text { font: 500 2rem/1 var(--font-display); color: var(--gold-light); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 30px); }
.nav li { position: relative; margin: 0; }
.nav > ul > li > a {
	display: block; padding: 10px 0; position: relative;
	color: #efe9df; text-decoration: none;
	font: 500 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
}
.nav > ul > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > ul > li > a:hover, .nav > ul > li.current-menu-item > a, .nav > ul > li.current_page_item > a, .nav > ul > li.current-menu-ancestor > a { color: var(--gold-light); }
.nav > ul > li > a:hover::after, .nav > ul > li.current-menu-item > a::after, .nav > ul > li.current_page_item > a::after, .nav > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.nav .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 230px; padding: 10px 0;
	background: var(--ink); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 10px 18px; color: #e6dfd3; text-decoration: none; font-size: .9rem; }
.nav .sub-menu a:hover { color: var(--gold-light); }

.header-cta { flex: none; }
.header-cta .btn { padding: .85em 1.3em; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 26px; height: 1.5px; margin: 6px 0; background: var(--gold-light); transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav > ul > li > a { white-space: nowrap; }
@media (max-width: 1360px) {
	.nav > ul > li > a { letter-spacing: .12em; font-size: .74rem; }
	.header-cta .btn span { display: none; }
	.header-cta .btn { padding: .85em; }
}
@media (max-width: 1180px) {
	:root { --header-h: 72px; }
	/* backdrop-filter would trap the fixed menu panel inside the header */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
	.brand img { height: 50px; }
	.menu-toggle { display: block; }
	.header-cta { order: 2; }
	.menu-toggle { order: 3; margin-left: 0; }
	.nav {
		order: 4; position: fixed; inset: var(--nav-top, 72px) 0 0 0; margin: 0;
		background: var(--ink); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease);
	}
	.brand { margin-right: auto; }
	.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--gutter) 40px; }
	.nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav > ul > li > a { padding: 20px 0; font-size: .95rem; }
	.nav > ul > li > a::after { display: none; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px 14px; }
	body.menu-is-open { overflow: hidden; }
}

/* ==========================================================================
   Featured hero (home + specials): big, above the fold, never crops text
   ========================================================================== */
.feature-hero { position: relative; background: var(--ink); overflow: hidden; isolation: isolate; }
.feature-hero__backdrop {
	position: absolute; inset: -40px; z-index: -1;
	background-size: cover; background-position: center;
	filter: blur(38px) saturate(115%) brightness(.55);
	transform: scale(1.1);
}
.feature-hero__frame {
	display: flex; align-items: center; justify-content: center;
	/* Fill the width at the image's own proportions, but never taller than the space above the fold */
	height: min(calc(100svh - var(--header-h) - var(--topbar-h) - 74px), calc(100vw / var(--ratio, 1.7778)));
	min-height: 260px;
}
.feature-hero__frame a, .feature-hero__frame picture { display: contents; }
.feature-hero__img {
	display: block; width: 100%; height: 100%;
	object-fit: contain; object-position: center;
	animation: heroIn 1.1s var(--ease) both;
}
.feature-hero--cover .feature-hero__img { object-fit: cover; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

.feature-hero__bar { background: var(--ink); color: #d8d2c8; border-top: 1px solid rgba(255,255,255,.08); }
.feature-hero__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; min-height: 74px; padding-top: 12px; padding-bottom: 12px; }
.feature-hero__note { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0; }
.feature-hero__note strong { font: 500 1.35rem/1.2 var(--font-display); color: var(--white); letter-spacing: .01em; }
.feature-hero__note span { font-size: .85rem; color: #a9a196; letter-spacing: .04em; }
.feature-hero__bar .btn { padding: .85em 1.4em; }
@media (max-width: 700px) {
	.feature-hero__frame { height: auto; min-height: 0; }
	.feature-hero__img { height: auto; }
	.feature-hero__bar .btn-row { width: 100%; }
	.feature-hero__bar .btn { flex: 1; letter-spacing: .1em; padding: .95em .6em; white-space: nowrap; }
}

/* Slider Revolution fallback inside heroes */
.hero-slider { background: var(--ink); }

/* ==========================================================================
   Inner-page header
   ========================================================================== */
.page-banner { background: var(--ink); line-height: 0; }
.page-banner img { display: block; width: 100%; height: auto; max-height: calc(100svh - 140px); object-fit: contain; margin: 0 auto; }
.page-banner--fixed img { height: var(--banner-h, 560px); object-fit: cover; max-height: none; }
@media (max-width: 700px) { .page-banner--fixed img { height: auto; } }
.page-banner__caption { line-height: 1.5; text-align: center; padding: 28px var(--gutter) 0; color: var(--white); }

.page-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head__inner { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); text-align: center; }
.page-head h1 { margin: 0; }
.page-head p { margin: .7em auto 0; max-width: 640px; color: var(--muted); }
.breadcrumbs { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-dark); }

.map-hero iframe, .wj-hero--map iframe { display: block; width: 100%; height: var(--wj-hero-h, 440px); filter: grayscale(.35) contrast(1.05); }

/* ==========================================================================
   Page content
   ========================================================================== */
.entry { padding: clamp(48px, 7vw, 96px) 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content > div[style*="background-color"] { background: transparent !important; padding: 0 !important; color: inherit !important; }

/* Layout shortcodes */
.wj-row { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.wj-col { width: 100%; padding: 0 20px; }
@media (min-width: 800px) {
	.wj-col-1{width:8.333%}.wj-col-2{width:16.667%}.wj-col-3{width:25%}.wj-col-4{width:33.333%}
	.wj-col-5{width:41.667%}.wj-col-6{width:50%}.wj-col-7{width:58.333%}.wj-col-8{width:66.667%}
	.wj-col-9{width:75%}.wj-col-10{width:83.333%}.wj-col-11{width:91.667%}.wj-col-12{width:100%}
}
@media (max-width: 799px) { .wj-col + .wj-col { margin-top: 40px; } }
.wj-spacer { display: block; clear: both; }

.wj-infobox {
	clear: both; position: relative; text-align: center;
	background: var(--ink); color: #d8d2c8;
	padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
	margin: 0 0 clamp(40px, 6vw, 70px);
}
.wj-infobox::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,151,90,.45); pointer-events: none; }
.wj-infobox__title { color: var(--white); margin: 0 0 .4em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.wj-infobox p { margin: 0; letter-spacing: .03em; }

.wj-imageboxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 30px); clear: both; margin-bottom: 2em; }
@media (max-width: 980px) { .wj-imageboxes { grid-template-columns: repeat(2, 1fr); } }
.wj-imagebox__link { display: block; text-decoration: none; position: relative; }
.wj-imagebox__img { display: block; aspect-ratio: 1; background: var(--white); overflow: hidden; }
.wj-imagebox__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--ease); }
.wj-imagebox__link:hover img { transform: scale(1.05); }
.wj-imagebox__label { position: absolute; left: 0; bottom: 0; right: 0; padding: .9em 1em; background: rgba(20,20,20,.86); color: var(--white); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transform: translateY(100%); opacity: 0; transition: all .35s var(--ease); }
.wj-imagebox__link:hover .wj-imagebox__label { transform: none; opacity: 1; }
.wj-imagebox__title { margin: .8em 0 0; font-size: 1.35rem; text-align: center; }

.wj-callout { font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 var(--font-display) !important; color: var(--ink) !important; text-align: center; max-width: 820px; margin: 2.5em auto 0 !important; padding: 1.6em 0 0 !important; border-top: 1px solid var(--line); text-transform: none; }
.wj-title-light { margin-top: 0; }
.qrCode { margin: 0 0 1em 1.5em; text-align: center; }
.qrCode h6 { margin: 0 0 .5em; }

/* Fluent Forms */
.fluentform .ff-el-form-control { border-radius: var(--radius) !important; border-color: var(--line) !important; padding: 12px 14px !important; font-family: var(--font-body) !important; background: var(--white) !important; }
.fluentform .ff-el-form-control:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(184,151,90,.18) !important; }
.fluentform .ff-btn-submit { background: var(--ink) !important; color: var(--white) !important; border: 0 !important; border-radius: var(--radius) !important; padding: 14px 30px !important; font: 500 .8rem/1 var(--font-body) !important; letter-spacing: .2em; text-transform: uppercase; }
.fluentform .ff-btn-submit:hover { background: var(--gold-dark) !important; }
.fluentform label { font-weight: 500 !important; color: var(--ink) !important; }

/* ==========================================================================
   Homepage sections
   ========================================================================== */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.intro__text h2 { margin-top: 0; }
.intro__text .entry-content .wj-col { width: 100%; }
.intro__text .entry-content .subtitle, .intro__text .entry-content .page-subtitle, .intro__text .entry-content img.aligncenter { display: none; }
.intro__text .entry-content .lead { font-size: 1.08rem; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.intro__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: -1; }
.intro__since { position: absolute; left: -26px; bottom: 34px; background: var(--ink); color: var(--white); padding: 18px 24px; text-align: center; }
.intro__since b { display: block; font: 500 2.4rem/1 var(--font-display); color: var(--gold-light); }
.intro__since span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__media { max-width: 460px; margin: 0 auto; } .intro__since { left: 12px; } }

/* Category cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink); color: var(--white); text-decoration: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; opacity: .9; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 20%, rgba(20,20,20,.55) 50%, rgba(20,20,20,.92) 100%); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 30px); }
.card__title, .card__text { display: block; }
.card__title { font: 500 clamp(1.6rem, 2.4vw, 2rem)/1.1 var(--font-display); margin: 0 0 .35em; color: var(--white); }
.card__text { font-size: .9rem; color: #ddd5c8; margin: 0 0 1em; line-height: 1.5; }
.card .link-arrow { color: var(--gold-light); }
.card:hover img { transform: scale(1.06); opacity: 1; }
@media (max-width: 520px) { .card { aspect-ratio: 4 / 3; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--ivory); padding: clamp(28px, 3.4vw, 44px); }
.service__icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--gold); }
.service__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.service h3 { margin: 0 0 .35em; font-size: 1.5rem; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* Heritage band */
.heritage { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.heritage__year { font: 400 clamp(5rem, 13vw, 10rem)/.85 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: -.02em; }
.heritage blockquote { border-color: var(--gold); color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 1.4em; }
.heritage blockquote small { color: var(--gold-light); }
.heritage p { color: #bfb7aa; }
@media (max-width: 800px) { .heritage { grid-template-columns: 1fr; } }

/* Visit */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--white); box-shadow: var(--shadow); }
.visit__info { padding: clamp(32px, 5vw, 64px); }
.visit__info h2 { margin-top: 0; }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; filter: grayscale(.35) contrast(1.05); }
.hours { list-style: none; padding: 0; margin: 0 0 1.6em; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: .6em 0; border-bottom: 1px solid var(--line); margin: 0; }
.hours li span:last-child { color: var(--ink); font-weight: 500; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1.8em; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: .6em; }
.contact-lines svg { width: 18px; height: 18px; fill: var(--gold); margin-top: .35em; flex: none; }
.contact-lines a { color: var(--ink); text-decoration: none; }
.contact-lines a:hover { color: var(--gold-dark); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .visit__map iframe { min-height: 320px; } }

/* Specials page */
.specials-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); text-align: center; }
.specials-note div { padding: 10px; }
.specials-note h3 { margin: .2em 0 .3em; font-size: 1.45rem; }
.specials-note p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .specials-note { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #a9a196; font-size: .92rem; }
.site-footer a { color: #e6dfd3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 46px; padding-bottom: 46px; }
.footer-cta h2 { margin: 0; color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.footer-cta p { margin: .3em 0 0; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-main h4 { color: var(--white); margin: 0 0 1.2em; font-size: .75rem; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin-bottom: .55em; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .8rem; }
.footer-bottom img { max-height: 22px; width: auto; opacity: .8; }
.footer-bottom img:hover { opacity: 1; }
.footer-widgets { padding-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* Mobile action bar (call / directions) */
.mobile-actions { display: none; }
@media (max-width: 700px) {
	.mobile-actions {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; color: var(--white); text-decoration: none; font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
	.mobile-actions a + a { border-left: 1px solid rgba(255,255,255,.1); color: var(--gold-light); }
	.mobile-actions svg { width: 16px; height: 16px; fill: currentColor; }
	body { padding-bottom: 52px; }
}

/* Back to top */
.to-top {
	position: fixed; right: 20px; bottom: 24px; z-index: 80; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; background: var(--white); color: var(--ink); border: 1px solid var(--line);
	box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: var(--white); }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 700px) { .to-top { bottom: 70px; right: 14px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

/* Generic */
.error-404 { text-align: center; }
.error-404 .code { font: 400 clamp(6rem, 18vw, 12rem)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--gold); margin: 0; }
.search-form { display: flex; max-width: 460px; margin: 2em auto 0; }
.search-form input { flex: 1; padding: 14px 16px; border: 1px solid var(--line); font: inherit; background: var(--white); }
.search-form button { border-radius: 0; }
.post-list article { padding: 2em 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 .3em; font-size: 2rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.pagination { margin-top: 2em; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); }

/* Prevent decorative offsets from causing sideways scroll on phones */
.site-main { overflow-x: clip; }
