/*
Theme Name: Nearly Hitched
Theme URI: https://nearlyhitched.com/
Author: Host Jersey
Author URI: https://hostjersey.com/
Description: Custom theme for Nearly Hitched, wedding signage and décor from North Wildwood, NJ.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: nearlyhitched
*/

/* ------------------------------------------------------------------ Fonts */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/cormorant.woff2") format("woff2");
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("assets/fonts/jost.woff2") format("woff2");
}

/* ----------------------------------------------------------------- Tokens */

:root {
	--bg: #faf7f2;
	--surface: #ffffff;
	--sand: #f2eadf;
	--blush: #ecdccf;
	--ink: #1f1b18;
	--text: #463e37;
	--muted: #72675d;
	--line: #e6dcd1;
	--gold: #b08d57;
	--gold-text: #85663a;
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: 24px;
	--radius: 4px;
	--shadow: 0 18px 40px -24px rgba(31, 27, 24, .35);
}

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

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

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	color: var(--ink);
	line-height: 1.1;
	margin: 0 0 .5em;
	letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.3rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-text); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

.eyebrow {
	display: inline-block;
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--bg);
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-text); border-color: var(--gold-text); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-sm { padding: 11px 20px; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

.text-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
	color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.text-link:hover { color: var(--gold-text); }

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

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 247, 242, .94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	color: var(--ink); text-decoration: none;
	font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1240px) and (min-width: 1121px) {
	.nav-list { gap: 20px; }
	.site-nav { gap: 22px; }
}
@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 24px;
		box-shadow: var(--shadow);
	}
	.nav-open .site-nav { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
	.nav-cta { margin-top: 20px; }
	.brand img { height: 42px; }
	.header-inner { min-height: 72px; }
}

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: #d9d0c6; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--gold); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; }

.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.flourish { display: block; width: 90px; height: 1px; background: var(--gold); margin: 22px 0; }
.center .flourish { margin-left: auto; margin-right: auto; }

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

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-media { position: relative; }
.hero-media .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-media::before {
	content: ""; position: absolute; inset: -18px 18px 18px -18px;
	border: 1px solid var(--gold); border-radius: 999px 999px 0 0; z-index: -1;
}
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .icon { color: var(--gold); }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.page-hero .lead { margin: 0 auto; }
.page-hero .flourish { margin: 26px auto 0; }

/* --------------------------------------------------------- Service cards */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.card { text-decoration: none; color: inherit; display: block; }
.card .arch { aspect-ratio: 3 / 4; margin-bottom: 20px; background: var(--sand); }
.card .arch img { transition: transform .6s ease; }
.card:hover .arch img { transform: scale(1.04); }
.card h3 { margin-bottom: .3em; }
.card p { font-size: .97rem; color: var(--muted); margin-bottom: .9em; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .card .arch { aspect-ratio: 4 / 4.4; } }

/* ------------------------------------------------------------------ Chips */

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
	border: 1px solid var(--line); background: var(--surface); padding: 8px 16px;
	font-size: .9rem; color: var(--text); border-radius: 999px;
}
.center .chips { justify-content: center; }

/* ------------------------------------------------------------------ Split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-media .arch { aspect-ratio: 4 / 5; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split.reverse .split-media { order: 0; }
	.split-media { max-width: 440px; width: 100%; margin: 0 auto; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.steps li::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--gold-text); line-height: 1;
	border-top: 1px solid var(--gold); padding-top: 10px;
}
.steps h3 { font-size: 1.4rem; margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

/* ----------------------------------------------------------------- Venues */

.venues { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; }
.venues li { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink); }
@media (max-width: 640px) { .venues { gap: 8px 24px; } .venues li { font-size: 1.2rem; } }

/* -------------------------------------------------------------- CTA band */

.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band .lead { color: #d9d0c6; margin-left: auto; margin-right: auto; }
.cta-band .phone-line { margin-top: 22px; font-size: .95rem; color: #bdb2a6; }
.cta-band .phone-line a { color: #fff; }

/* ---------------------------------------------------- Page content (entry) */

.page-body { padding-bottom: clamp(64px, 9vw, 120px); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { margin-top: 1.4em; }
.entry h3 { margin-top: 1.2em; }

/* Feature rows inside page content */
.feature {
	display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
	padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature.reverse { grid-template-columns: 1.1fr .9fr; }
.feature.reverse .feature-text { order: 2; }
.feature h2 { margin-top: 0; }
.feature-text ul { padding-left: 0; list-style: none; }
.feature-text li { padding-left: 22px; position: relative; margin-bottom: .45em; }
.feature-text li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold); }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature-media img:first-child { border-radius: 999px 999px 0 0; }
.feature-media.trio { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; }
.feature-media.trio img:first-child { grid-row: span 2; height: 100%; aspect-ratio: auto; }
.feature-media.trio img:not(:first-child) { aspect-ratio: 1 / 1; }
@media (max-width: 860px) {
	.feature { grid-template-columns: 1fr; }
	.feature.reverse .feature-text { order: 0; }
}

/* Rental cards inside page content */
.rentals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.rental { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.rental img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.rental-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.rental h3 { margin: 0 0 .35em; }
.rental p { font-size: .97rem; color: var(--muted); }
.rental .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .rentals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rentals { grid-template-columns: 1fr; } }

/* Note / callout */
.note { background: var(--sand); padding: 28px 32px; border-left: 2px solid var(--gold); margin: 2em 0; }
.note p:last-child { margin-bottom: 0; }

/* Materials list */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.materials li { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; }
.materials strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.materials span { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .materials { grid-template-columns: 1fr; } }

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

.gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 2em !important; }
.gallery .gallery-item { margin: 0 !important; width: auto !important; max-width: none !important; float: none !important; }
.gallery .gallery-icon, .gallery .gallery-icon a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 0 !important; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.gallery .gallery-caption { display: none; }
.gallery br { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 17, 15, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #e8e0d7; font-size: .95rem; padding: 0 70px; }
.lightbox button {
	position: absolute; background: transparent; border: 0; color: #fff; cursor: pointer;
	width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
}
.lightbox button .icon { width: 28px; height: 28px; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-inner { padding: 56px 8px 64px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 4px; transform: none; } }

/* Instagram (Smash Balloon) */
.insta #sb_instagram { padding: 0 !important; }
.insta #sb_instagram .sbi_photo { aspect-ratio: 1 / 1; }
/* The feed loads more posts than we want; show the latest eight and hide the plugin's buttons. */
.insta #sb_instagram .sbi_item:nth-child(n+9) { display: none !important; }
.insta #sb_instagram #sbi_load, .insta #sb_instagram .sb_instagram_header { display: none !important; }
@media (max-width: 640px) { .insta #sb_instagram .sbi_item:nth-child(n+7) { display: none !important; } }

/* ------------------------------------------------------------------ Blog */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.post-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.55rem; margin: 6px 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold-text); }
.post-card p { font-size: .97rem; color: var(--muted); }
.post-card .text-link { margin-top: auto; align-self: flex-start; }
.post-date, .post-meta { font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.post-meta { margin: 20px 0 0; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.article-hero h1 { max-width: 22ch; }
.article-hero .eyebrow { text-decoration: none; }
.article-photo { margin: 0 auto clamp(40px, 6vw, 72px); }
.article-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.prose { max-width: 760px; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.45rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-text); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); background: var(--sand); }

.faq { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-family: var(--sans); font-size: 1.4rem; color: var(--gold-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 4px; color: var(--text); }

/* --------------------------------------------------------------- Contact */

.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.contact-card h2 { font-size: 1.9rem; margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--gold-text); margin-top: 4px; }
.contact-list strong { display: block; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--gold-text); }
.contact-card .social a { color: var(--ink); border-color: var(--line); }
.contact-card .social a:hover { color: var(--gold-text); border-color: var(--gold); }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { margin: 10px 0 0; font-size: .9rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Gravity Forms (Orbital theme) to match the site */
.gform-theme--framework {
	--gf-color-primary: #1f1b18;
	--gf-color-primary-rgb: 31, 27, 24;
	--gf-color-primary-contrast: #faf7f2;
	--gf-color-primary-darker: #85663a;
	--gf-color-in-ctrl-primary: #1f1b18;
	--gf-ctrl-border-color: #d8ccbf;
	--gf-ctrl-radius: 0;
	--gf-ctrl-btn-radius: 0;
	--gf-ctrl-font-family: var(--sans);
	--gf-ctrl-label-font-family-primary: var(--sans);
	--gf-font-family-base: var(--sans);
	--gf-ctrl-label-color-primary: #1f1b18;
	--gf-ctrl-btn-font-weight: 500;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: .2em;
	--gf-ctrl-btn-font-size: .8rem;
	--gf-ctrl-btn-padding-x: 30px;
	--gf-ctrl-size-md: 46px;
}
.gform-theme--framework .gfield_label, .gform-theme--framework legend.gfield_label { font-weight: 500 !important; }

/* Gravity Forms legacy theme (the forms on this site use it) */
.gform_wrapper.gravity-theme { font-family: var(--sans); }
.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme legend.gfield_label {
	font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink); margin-bottom: 8px;
}
.gform_wrapper.gravity-theme .gfield_required { color: var(--gold-text); }
.gform_wrapper.gravity-theme .ginput_complex label,
.gform_wrapper.gravity-theme .gfield_description { font-size: .82rem; color: var(--muted); }
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme textarea,
.gform_wrapper.gravity-theme select {
	width: 100%;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	background-color: var(--surface);
	border: 1px solid #d8ccbf;
	border-radius: 0;
	padding: 12px 14px;
	min-height: 48px;
	box-shadow: none;
}
.gform_wrapper.gravity-theme select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1b18' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}
.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme textarea:focus,
.gform_wrapper.gravity-theme select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.gform_wrapper.gravity-theme .gfield_checkbox .gchoice { margin-bottom: 6px; }
.gform_wrapper.gravity-theme .gfield_checkbox input[type="checkbox"] { accent-color: var(--ink); width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; }
.gform_wrapper.gravity-theme .gform_footer { margin-top: 10px; padding-top: 0; }
.gform_wrapper.gravity-theme .gform_footer .gform_button,
.gform_wrapper.gravity-theme .gform_page_footer .button {
	width: auto !important;
	min-height: 52px;
	padding: 15px 40px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--bg);
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background .2s, border-color .2s;
}
.gform_wrapper.gravity-theme .gform_footer .gform_button:hover { background: var(--gold-text); border-color: var(--gold-text); }
.gform_wrapper.gravity-theme .gform_validation_errors { border-radius: 0; }
.gform_confirmation_message { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); padding: 20px 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form-card > h2 { margin-top: 0; font-size: 2.1rem; }

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

.site-footer { background: var(--ink); color: #c9bfb4; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: clamp(56px, 7vw, 88px) 0 48px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 {
	font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
	color: var(--gold); margin: 6px 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #ece4da; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .btn-light { color: var(--ink); }
.site-footer .btn-light:hover { color: var(--bg); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
	width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #a3988c;
}
.footer-bottom a { color: #a3988c; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Utilities */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
