/**
* Four Saints Club — public site
* Direction: "The Threshold, Refined" (Option 1b)
*
* Type system
*   --font-display : Rallington Serif   — primary display headlines (self-hosted)
*   --font-body    : Freight Text Pro    — body copy + subsection headlines (Adobe/Typekit)
*   --font-label   : Tay Wingman         — eyebrows, nav, buttons, labels (all-caps, tracked)
*   --font-script  : Jimmy Script (pending) → Sacramento interim — single script accent
*/

:root {
	/* palette */
	--cream:        #f6f3e4;
	--paper:        #efead5;
	--burgundy:     #5b1f23;
	--burgundy-deep:#3f1417;
	--darkgreen:    #0d3938;
	--green-deep:   #07201f;
	--sage:         #a3c4af;
	--orange:       #f0744a;
	--amber:        #f0744a;
/*	--amber:        #e8a86a;  ...AI added gold/amber color, using brand orange for now **/
	--navy:         #0c123a;

	/* type */
	--font-display: rallington, "Playfair Display", Georgia, serif;
	--font-body:    freight-text-pro, Georgia, "Times New Roman", serif;
	--font-label:   wingman, "Inter", system-ui, sans-serif;
	--font-script:  jimmyscript, "Sacramento", "Snell Roundhand", cursive;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--green-deep);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* shared helpers ------------------------------------------------------- */
.eyebrow {
	font-family: var(--font-label);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 12px;
}
.script {
	font-family: var(--font-script);
	font-weight: normal;
}
.fs-wrap { max-width: 1180px; margin: 0 auto; }

/* film-grain overlay --------------------------------------------------- */
body::before {
	content: '';
	position: fixed; inset: 0;
	pointer-events: none; z-index: 999;
	opacity: 0.5; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- NAV ---------- */
.site-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	padding: 22px 48px;
	display: flex; justify-content: space-between; align-items: center;
	background: linear-gradient(to bottom, rgba(7,32,31,0.92), rgba(7,32,31,0));
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
/* scrolled: stays semi-transparent with a stronger blur (per original Threshold) */
.site-nav.is-scrolled {
	background: rgba(7,32,31,0.72);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	padding-top: 16px; padding-bottom: 16px;
	border-bottom: 1px solid rgba(246,243,228,0.1);
}
.site-nav .brand { height: 20px; color: var(--cream); display: flex; }
.site-nav .brand svg { height: 100%; width: auto; fill: currentColor; }
/* right-aligned link list (brand pushed left by space-between) */
.site-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.site-nav ul a {
	color: var(--cream); text-decoration: none;
	font-family: var(--font-label); font-size: 12px;
	letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85;
	transition: opacity 0.2s, color 0.2s;
}
.site-nav ul a:hover { opacity: 1; color: var(--amber); }
/* hamburger — hidden on desktop, shown on mobile */
.nav-toggle { display: none; }
.nav-toggle span {
	display: block; width: 24px; height: 2px; background: var(--cream);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- MASTHEAD ---------- */
.masthead {
	min-height: 100vh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; position: relative; overflow: hidden;
	padding: 100px 32px 80px;
	background:
		radial-gradient(ellipse 50% 35% at 50% 50%, rgba(232,168,106,0.15), transparent 70%),
		radial-gradient(ellipse 90% 70% at 50% 100%, rgba(91,31,35,0.35), transparent 70%),
		var(--green-deep);
}
.masthead::after {
	content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 1px; height: 50px;
	background: linear-gradient(to bottom, transparent, rgba(246,243,228,0.5));
}
.stamp {
	margin: 0 auto 38px; width: 92px; height: 92px; border-radius: 50%;
	border: 1px solid rgba(246,243,228,0.6);
	display: flex; align-items: center; justify-content: center;
	color: var(--cream); position: relative;
	animation: fs-flicker 5s ease-in-out infinite;
}
.stamp::before, .stamp::after {
	content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%;
	background: rgba(246,243,228,0.6);
}
.stamp::before { left: -16px; }
.stamp::after  { right: -16px; }
.stamp svg { height: 56%; width: auto; fill: currentColor; }
.masthead .toptag {
	font-family: var(--font-label); font-size: 11px;
	letter-spacing: 0.5em; text-transform: uppercase;
	color: rgba(246,243,228,0.75); margin-bottom: 22px;
}
.masthead .wordmark {
	width: clamp(300px, 60vw, 640px); margin: 0 auto 26px;
	filter: drop-shadow(0 0 40px rgba(232,168,106,0.18));
}
.masthead .wordmark img { width: 100%; height: auto; display: block; }
.masthead .est {
	margin-top: 56px; font-family: var(--font-label); font-size: 11px;
	letter-spacing: 0.5em; text-transform: uppercase; color: rgba(246,243,228,0.5);
}
@keyframes fs-flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.94; } }

/* ---------- HALLWAY ---------- */
.hallway {
	padding: 140px 32px 160px; text-align: center;
	background: var(--green-deep); position: relative;
}
.hallway::before, .hallway::after {
	content: ''; position: absolute; top: 0; bottom: 0; width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(246,243,228,0.18), transparent);
}
.hallway::before { left: calc(50% - 420px); }
.hallway::after  { left: calc(50% + 420px); }
.hallway .ornament { color: var(--amber); font-size: 18px; letter-spacing: 1em; margin-bottom: 32px; }
.hallway h2 {
	font-family: var(--font-body); font-style: italic; font-weight: 400;
	font-size: clamp(25px, 2.9vw, 40px); color: var(--cream);
	max-width: 660px; margin: 0 auto 28px; line-height: 1.42;
}
.hallway p { max-width: 540px; margin: 0 auto; margin-bottom: 1em; color: var(--sage); }
.hallway .script { color: var(--amber); font-size: 30px; margin-top: 26px; display: block; }

/* ---------- ABOUT / THE CLUB ---------- */
.about { background: var(--burgundy); color: var(--cream); padding: 140px 48px; position: relative; }
.about::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 60% 40% at 80% 30%, rgba(240,116,74,0.18), transparent 60%),
		radial-gradient(ellipse 60% 40% at 20% 90%, rgba(12,18,58,0.4), transparent 60%);
}
.about-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.label-row {
	display: flex; justify-content: space-between; align-items: center;
	padding-bottom: 14px; margin-bottom: 52px;
}
.about .label-row { border-bottom: 1px solid rgba(246,243,228,0.25); }
.label-row span {
	font-family: var(--font-label); font-size: 11px;
	letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246,243,228,0.7);
}
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.about h2 {
	font-family: var(--font-display); font-weight: normal;
	font-size: clamp(42px, 4.8vw, 66px); line-height: 1.05;
	margin: 0 0 36px; letter-spacing: 0.005em; color: var(--cream);
}
.about h2 em { font-style: normal; color: var(--amber); }
.about .lede {
	font-family: var(--font-body); font-style: italic; font-weight: 400;
	font-size: 22px; line-height: 1.5; color: rgba(246,243,228,0.94);
	margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(246,243,228,0.18);
}
.about .body p { margin: 0 0 20px; color: rgba(246,243,228,0.88); }
.about .body p:last-child { margin-bottom: 0; }
.about .body p.drop::first-letter {
	font-family: var(--font-display); font-size: 62px; font-weight: normal;
	color: var(--amber); float: left; line-height: 0.82; padding: 8px 12px 0 0;
}

/* mood board — salon wall */
.moodboard { position: relative; padding: 28px 0 50px; }
.moodboard .mb-label {
	position: absolute; top: 0; left: 2px;
	font-family: var(--font-label); font-size: 11px;
	letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246,243,228,0.7);
}
.salon-wall { position: relative; aspect-ratio: 5/6; }
.salon-wall .tile {
	position: absolute; overflow: hidden; background-color: #2c1112;
	border: 3px solid var(--cream);
	box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
}
.salon-wall .tile img { width: 100%; height: 100%; object-fit: cover; }
/* fallback gradients until photos drop into /img/photo/ */
.salon-wall .fb1 { background-image: linear-gradient(135deg, #5b2a1d 0%, #2c1112 60%, #0d0606 100%); }
.salon-wall .fb2 { background-image:
	linear-gradient(180deg, #2c1112 0%, #5b2a1d 30%, #2c1112 100%),
	repeating-linear-gradient(90deg, rgba(232,168,106,0.18) 0 2px, transparent 2px 8px); }
.salon-wall .fb3 { background-image: linear-gradient(160deg, #7b2c30 0%, #5b1f23 50%, #2c1112 100%); }
.salon-wall .t1 { top: 14%; left:    0;  width: 50%; height: 28%; }
.salon-wall .t2 { top:  4%; right:   2%; width: 30%; height: 38%; }
.salon-wall .t3 { top: 46%; left:    8%; width: 36%; height: 36%; }
.salon-wall .t4 { top: 46%; right: -10%; width: 48%; height: 30%; }
.salon-wall .t5 { top: 85%; left:   24%; width: 20%; height: 18%; }
.salon-wall .t6 { top: 79%; right:   3%; width: 35%; height: 28%; }

/* ---------- THE PROGRAM ---------- */
.program { background: var(--darkgreen); padding: 140px 48px; }
.program-inner { max-width: 1180px; margin: 0 auto; }
.program .label-row { border-bottom: 1px solid rgba(246,243,228,0.25); }
.program .head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.program h2 {
	font-family: var(--font-display); font-weight: normal;
	font-size: clamp(38px, 4.4vw, 58px); color: var(--cream);
	margin: 0 0 18px; line-height: 1.08;
}
.program h2 em { font-style: normal; color: var(--amber); }
.program .head p { color: var(--sage); margin: 0; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.program-item { border-top: 1px solid rgba(163,196,175,0.35); padding-top: 24px; }
.program-item .num {
	font-family: var(--font-label); font-size: 12px; letter-spacing: 0.3em;
	text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.program-item h3 {
	font-family: var(--font-body); font-weight: 600;
	font-size: 25px; color: var(--cream); margin: 0 0 12px; line-height: 1.2;
}
.program-item p { color: var(--sage); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- VISIT ---------- */
.visit { background: var(--cream); color: var(--burgundy); padding: 140px 48px; }
.visit-inner { max-width: 1180px; margin: 0 auto; }
.visit .label-row { border-bottom: 1px solid rgba(91,31,35,0.25); }
.visit .label-row span { color: rgba(91,31,35,0.7); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.visit h2 {
	font-family: var(--font-display); font-weight: normal;
	font-size: clamp(36px, 4.4vw, 56px); margin: 0 0 24px; color: var(--burgundy); line-height: 1.06;
}
.visit h2 em { font-style: normal; color: var(--orange); }
.visit p.intro { color: rgba(91,31,35,0.85); margin: 0 0 24px; }
.visit .detail { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 30px; align-items: baseline; }
.visit .detail dt {
	font-family: var(--font-label); font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.28em; color: var(--orange); padding-top: 8px;
}
.visit .detail dd {
	font-family: var(--font-display); font-weight: normal; font-size: 23px;
	color: var(--burgundy); padding-bottom: 14px; margin: 0 0 6px;
	border-bottom: 1px solid rgba(91,31,35,0.18);
}

.visit .call { border: 1px solid var(--orange); padding: 20px; text-align: center; margin-top: 10px; }
.visit .call .small { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--burgundy); display: block; }
.visit .call .num { font-family: var(--font-display); font-size: 36px; color: var(--burgundy); font-weight: 700; letter-spacing: 0.04em; }
.visit .call h6 { font-weight: normal; margin: 0; }
.visit .call h6 .sig { font-family: var(--font-script); color: var(--orange); font-size: 48px; display: block; line-height: 1; }
.visit .call h6 .head { font-family: var(--font-display); color: var(--burgundy); font-size: 17px; margin-top: -6px; display: block; line-height: 1; }


.map { aspect-ratio: 1/1; width: 100%; border: 1px solid rgba(91,31,35,0.25); background: var(--cream); position: relative; overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }

/* ---------- SIGNUP ---------- */
.signup { background: var(--green-deep); padding: 140px 32px; position: relative; overflow: hidden; }
.signup::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(240,116,74,0.16), transparent 65%);
}
.signup-card {
	max-width: 720px; margin: 0 auto; background: var(--burgundy); color: var(--cream);
	padding: 22px; position: relative;
	box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.3);
}
.signup-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(232,168,106,0.55); pointer-events: none; }
.signup-card::after  { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(232,168,106,0.25); pointer-events: none; }
.signup-inner { padding: 56px; position: relative; z-index: 2; text-align: center; }
.signup-card .eyebrow { display: block; color: var(--amber); margin-bottom: 22px; }
.signup-card h2 {
	font-family: var(--font-display); font-weight: normal;
	font-size: clamp(32px, 3.8vw, 48px); color: var(--cream); margin: 0 0 16px; line-height: 1.08;
}
.signup-card h2 em { font-style: normal; color: var(--amber); }
.signup-card p.lede { color: rgba(246,243,228,0.82); max-width: 460px; margin: 0 auto 36px; font-size: 17px; }
.signup-form { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; text-align: left; }
.signup-form .name-row { display: flex; gap: 12px; }
.signup-form .name-row input { min-width: 0; }
.signup-form .name-row input:first-child { flex: 2; }   /* first name ~40% */
.signup-form .name-row input:last-child  { flex: 3; }   /* last name  ~60% */
.signup-form input {
	width: 100%; padding: 15px 18px; background: transparent;
	border: 1px solid rgba(246,243,228,0.3); color: var(--cream);
	font-family: var(--font-body); font-size: 16px; transition: border-color 0.2s;
}
.signup-form .form-city { display: none; }
.signup-form input:focus { outline: none; border-color: var(--amber); }
.signup-form input::placeholder { color: rgba(246,243,228,0.45); }
.signup-form input.is-invalid { border-color: var(--orange); }
.signup-form button {
	margin-top: 8px; background: var(--amber); color: var(--burgundy-deep);
	border: none; padding: 17px; cursor: pointer;
	font-family: var(--font-label); font-size: 12px;
	text-transform: uppercase; letter-spacing: 0.3em;
	transition: background 0.2s, color 0.2s;
}
.signup-form button:hover { background: var(--cream); }
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-card .note { margin-top: 16px; font-family: var(--font-script); color: var(--amber); font-size: 24px; line-height: 1; }

/* error: a clearly bordered, tinted box that fades out after a few seconds */
.signup-feedback { max-width: 460px; margin: 0 auto; }
.signup-feedback.is-error {
	margin-top: 18px;
	border: 1px solid var(--orange);
	background: rgba(240,116,74,0.14);
	color: var(--orange);
	font-size: 15px; line-height: 1.45;
	padding: 14px 20px;
	transition: opacity 0.6s ease;
}
.signup-feedback.is-fading { opacity: 0; }

/* success: isolate + highlight in its own bordered box with generous spacing */
.signup-card.is-done .signup-form,
.signup-card.is-done .lede,
.signup-card.is-done .note { display: none; }
.signup-card.is-done .signup-done { display: block; }
.signup-done {
	display: none;
	margin: 10px auto 0; max-width: 460px;
	border: 1px solid var(--amber);
	background: rgba(232,168,106,0.1);
	padding: 40px 32px;
	text-align: center;
}
.signup-done .script { color: var(--amber); font-size: 42px; display: block; margin-bottom: 12px; line-height: 1; }
.signup-done p { color: rgba(246,243,228,0.9); margin: 0; font-size: 17px; line-height: 1.55; }

/* ---------- FOOTER ---------- */
.site-footer {
	background: var(--green-deep); color: var(--sage);
	padding: 60px 48px 40px; border-top: 1px solid rgba(246,243,228,0.1); text-align: center;
}
.site-footer .brand { display: inline-flex; height: 18px; color: var(--cream); opacity: 0.6; margin-bottom: 22px; }
.site-footer .brand svg { height: 100%; fill: currentColor; }
.site-footer p {
	font-family: var(--font-label); font-size: 11px; letter-spacing: 0.3em;
	text-transform: uppercase; color: rgba(163,196,175,0.6); margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.site-nav { padding: 16px 22px; }
	/* hamburger left, logo perfectly centered on screen */
	.nav-toggle {
		display: flex; flex-direction: column; gap: 5px;
		background: none; border: 0; padding: 6px; cursor: pointer; z-index: 2;
	}
	.site-nav .brand { position: absolute; left: 50%; transform: translateX(-50%); }
	.site-nav ul {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 0;
		padding: 6px 22px 20px;
		background: rgba(7,32,31,0.94);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-bottom: 1px solid rgba(246,243,228,0.12);
	}
	.site-nav.menu-open ul { display: flex; }
	.site-nav ul li { padding: 14px 2px; border-top: 1px solid rgba(246,243,228,0.08); }
	.site-nav ul a { font-size: 13px; letter-spacing: 0.28em; opacity: 1; }
	/* hamburger morphs to an X when open */
	.site-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.site-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.site-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.masthead { padding: 90px 22px 60px; min-height: 92vh; }
	.about-grid, .visit-grid { grid-template-columns: 1fr; gap: 56px; }
	.program-grid { grid-template-columns: 1fr; gap: 32px; }
	.about, .program, .visit { padding: 88px 22px; }
	.signup { padding: 90px 16px; }
	.hallway { padding: 90px 22px; }
	.hallway::before, .hallway::after { display: none; }
	.signup-inner { padding: 36px 22px; }
	.about .label-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Salon wall -> uniform 4-row grid on medium desktop (901-1155px) and mobile
   (<=544px, i.e. when the photo column drops under ~500px wide). Wide desktop
   (>=1156px) and tablet (545-900px, column >500px) keep the salon-wall layout. */
@media (max-width: 544px),
       (min-width: 901px) and (max-width: 1155px) {
	.salon-wall {
		aspect-ratio: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 1em;
	}
	.salon-wall figure { 
		margin: 0.5em;
	}
	.salon-wall .tile {
		position: static;
		top: auto; left: auto; right: auto; bottom: auto;
		width: auto; height: auto;
		aspect-ratio: 1 / 1;          /* row 2 & 4: two-up squares */
	}
	.salon-wall .t1,
	.salon-wall .t4 {
		grid-column: 1 / 3;           /* row 1 & 3: a single double-wide photo */
		aspect-ratio: 2 / 1;
	}
}

/* Salon wall - shift for tablet screents, left: decrease by 5%, right increase by 8%; */
@media (min-width: 746px) and (max-width: 900px) {
	.salon-wall .t1 { left:   -5%; }
	.salon-wall .t2 { right:  10%; }
	.salon-wall .t3 { left:    3%; }
	.salon-wall .t4 { right:  -2%; }
	.salon-wall .t5 { left:   19%; }
	.salon-wall .t6 { right:  11%; }
 }
 @media (min-width: 545px) and (max-width: 745px) {
	.salon-wall .t1 { left:   -7%; }
	.salon-wall .t2 { right:   8%; }
	.salon-wall .t3 { left:    1%; }
	.salon-wall .t4 { right:  -4%; }
	.salon-wall .t5 { left:   17%; }
	.salon-wall .t6 { right:   9%; }
 }

/* Visit info: stack labels above values on small screens so values
   (e.g. "281 E Whittier St") stay on one line. */
@media (max-width: 600px) {
	.visit .detail { grid-template-columns: 1fr; gap: 0; }
	.visit .detail dt { padding-top: 20px; }
	.visit .detail dd { margin-bottom: 0; padding-bottom: 16px; }

	/* stack first/last name on their own rows on phones */
	.signup-form .name-row { flex-direction: column; }
	.signup-form .name-row input { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.masthead .stamp { animation: none; }
}
