/* ============================================================
   GRIFFIN BROTHERS PROPERTIES — Design System
   Colors sampled from the brand mark (deep ink + gold) and the
   company's own buildings (warm wood, warm white metal siding).
   Typography: Fraunces (architectural serif, display) + Inter (sans, UI/body).
   ============================================================ */

:root {
	/* Color — sampled from supplied assets */
	--ink:            #14201a;   /* logo plaque background */
	--ink-soft:        #1e2b25;
	--charcoal:        #2b2e28;
	--warm-white:      #F9F6F0;
	--off-white:       #F1ECE1;
	--paper:           #EFE9DC;
	--wood:            #6B4F33;  /* sampled from retail building panel */
	--wood-deep:       #4A3722;
	--taupe:           #C9BFA9;
	--stone:           #8A8579;
	--stone-line:      #DDD5C3;
	--gold:            #C9A15F;  /* sampled from griffin mark */
	--gold-deep:       #9C7A42;

	--text-ink:        var(--ink);
	--text-muted:      #5B5A50;
	--text-on-dark:    #F3EFE4;
	--text-on-dark-muted: #C7C0AE;

	/* Type */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Spacing scale */
	--space-xs: .5rem;
	--space-sm: 1rem;
	--space-md: 2rem;
	--space-lg: 4rem;
	--space-xl: 7rem;
	--space-2xl: 10rem;

	/* Layout */
	--container-max: 1320px;
	--container-pad: clamp(1.25rem, 4vw, 3.5rem);
	--radius: 2px;

	/* Motion */
	--ease: cubic-bezier(.22,.61,.36,1);
	--dur-fast: .2s;
	--dur-med: .5s;
	--dur-slow: .9s;
}

@media (prefers-reduced-motion: reduce) {
	:root { --dur-fast: 0s; --dur-med: 0s; --dur-slow: 0s; }
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--warm-white);
	color: var(--text-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Accessible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}
.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 999;
	background: var(--ink); color: var(--text-on-dark);
	padding: .75rem 1.25rem;
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
	font-family: var(--font-body);
	font-size: .75rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--gold-deep);
}
.eyebrow--on-dark { color: var(--gold); }

h1, .h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2.4rem, 5.5vw, 4.6rem);
	line-height: 1.05;
	letter-spacing: -.01em;
}
h2, .h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.12;
	letter-spacing: -.01em;
}
h3, .h3 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	line-height: 1.2;
}
.lede {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.6;
	color: var(--text-muted);
}
.section-intro { max-width: 640px; }
.section-intro.center { margin-inline: auto; text-align: center; }

/* ============================================================
   ARCHITECTURAL DIVIDERS / WOOD-PANEL MOTIF
   Thin repeating lines echo the horizontal wood-slat rhythm on
   the actual buildings, without dropping in a literal texture.
   ============================================================ */
.rule {
	height: 1px;
	background: var(--stone-line);
	border: 0;
	margin: 0;
}
.rule--dark { background: rgba(249,246,240,.14); }

.slat-divider {
	height: 34px;
	background-image: repeating-linear-gradient(
		to bottom,
		var(--wood) 0px, var(--wood) 3px,
		transparent 3px, transparent 9px
	);
	opacity: .5;
}

.material-panel {
	background: linear-gradient(180deg, var(--off-white), var(--paper));
	border-top: 1px solid var(--stone-line);
	border-bottom: 1px solid var(--stone-line);
}

/* Griffin watermark motif — discovered, not shouted */
.griffin-motif {
	position: absolute;
	opacity: .05;
	pointer-events: none;
	filter: grayscale(1) brightness(0) invert(1);
	z-index: 0;
}
.griffin-motif--ink { filter: none; opacity: .06; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 1rem 1.9rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 1px solid transparent;
	border-radius: var(--radius);
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
	background: var(--gold);
	color: var(--ink);
	border-color: var(--gold);
}
.btn-primary:hover { background: var(--warm-white); border-color: var(--warm-white); }
.btn-outline {
	background: transparent;
	color: var(--text-on-dark);
	border-color: rgba(249,246,240,.5);
}
.btn-outline:hover { background: rgba(249,246,240,.1); border-color: var(--warm-white); }
.btn-outline--ink { color: var(--ink); border-color: var(--ink); }
.btn-outline--ink:hover { background: var(--ink); color: var(--text-on-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	padding-block: 1.4rem;
	background: transparent;
	transition: background var(--dur-med) var(--ease), padding var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.site-header.is-scrolled {
	background: rgba(249,246,240,.94);
	backdrop-filter: saturate(140%) blur(10px);
	padding-block: .8rem;
	box-shadow: 0 1px 0 var(--stone-line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}
.site-branding { display: flex; align-items: center; }
.site-branding img {
	height: 52px;
	width: auto;
	border-radius: 3px;
	transition: height var(--dur-med) var(--ease);
}
.site-header.is-scrolled .site-branding img { height: 42px; }

.primary-nav { display: none; }
@media (min-width: 960px) {
	.primary-nav { display: flex; align-items: center; gap: var(--space-lg); }
	.primary-nav ul { display: flex; gap: 2.1rem; }
	.primary-nav a {
		font-size: .8rem;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--text-on-dark);
		position: relative;
		padding-block: .3rem;
		transition: color var(--dur-fast) var(--ease);
	}
	.site-header.is-scrolled .primary-nav a { color: var(--text-ink); }
	.primary-nav a::after {
		content: '';
		position: absolute; left: 0; right: 100%; bottom: -2px;
		height: 1px; background: currentColor;
		transition: right var(--dur-fast) var(--ease);
	}
	.primary-nav a:hover::after { right: 0; }
	.primary-nav .btn { margin-left: .5rem; }
}

.menu-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: .5rem;
	z-index: 120;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
	width: 26px; height: 2px;
	background: var(--text-on-dark);
	transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.site-header.is-scrolled .menu-toggle span { background: var(--text-ink); }
body.mobile-nav-open .site-header .menu-toggle span { background: var(--text-on-dark); }
body.mobile-nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	position: fixed; inset: 0;
	background: var(--ink);
	display: flex; flex-direction: column;
	align-items: flex-start; justify-content: center;
	gap: 1.6rem;
	padding: var(--container-pad);
	transform: translateY(-100%);
	transition: transform var(--dur-med) var(--ease);
	z-index: 110;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--text-on-dark);
}
.mobile-nav .btn { margin-top: 1rem; }
body.no-scroll { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	color: var(--text-on-dark);
	overflow: hidden;
}
.hero__media {
	position: absolute; inset: 0;
	z-index: 0;
}
.hero__media img {
	width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
}
.hero__scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(0deg, rgba(20,32,26,.92) 0%, rgba(20,32,26,.55) 42%, rgba(20,32,26,.28) 68%, rgba(20,32,26,.42) 100%);
}
.hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: var(--space-xl) var(--space-lg);
}
.hero__eyebrow { display:flex; align-items:center; gap:.8rem; margin-bottom: 1.4rem; }
.hero__eyebrow .line { width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
	max-width: 16ch;
	text-transform: uppercase;
	font-weight: 500;
}
.hero h1 span { display: block; }
.hero__sub {
	margin-top: var(--space-md);
	max-width: 30ch;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	color: var(--text-on-dark-muted);
	font-weight: 400;
}
.hero__actions {
	margin-top: var(--space-lg);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.hero__griffin {
	position: absolute;
	right: clamp(1rem, 4vw, 4rem);
	top: clamp(5rem, 14vh, 9rem);
	width: clamp(80px, 9vw, 140px);
	opacity: .16;
	z-index: 1;
}

/* ============================================================
   FAMILY / INTRO SECTION
   ============================================================ */
.intro {
	position: relative;
	background: var(--off-white);
	padding-block: var(--space-2xl);
	overflow: hidden;
}
.intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	align-items: center;
}
@media (min-width: 900px) {
	.intro__grid { grid-template-columns: .95fr 1.05fr; gap: var(--space-xl); }
}
.intro__art {
	position: relative;
	background: var(--warm-white);
	border: 1px solid var(--stone-line);
	padding: var(--space-sm);
}
.intro__art::before {
	content: '';
	position: absolute; inset: 10px;
	border: 1px solid var(--taupe);
	pointer-events: none;
}
.intro__art img { width: 100%; }
.intro__copy p {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.3rem, 2.4vw, 1.85rem);
	line-height: 1.5;
	color: var(--ink);
}
.intro__copy p + p { margin-top: 1.3rem; }
.intro__names {
	margin-top: var(--space-md);
	display: flex;
	align-items: center;
	gap: 1rem;
}
.intro__names .line { width: 46px; height: 1px; background: var(--gold-deep); }
.intro__names span {
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 600;
}
.intro .griffin-motif {
	left: -60px; bottom: -60px;
	width: 320px;
	filter: none;
	opacity: .04;
}

/* ============================================================
   DIVISIONS
   Editorial, alternating composition — not five identical cards.
   ============================================================ */
.divisions { background: var(--warm-white); padding-block: var(--space-xl) 0; }
.divisions__head { padding-bottom: var(--space-lg); }

.division-row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--stone-line);
}
.division-row:last-child { border-bottom: 1px solid var(--stone-line); }

@media (min-width: 900px) {
	.division-row { grid-template-columns: 1fr 1fr; min-height: 70vh; }
	.division-row.reverse { direction: rtl; }
	.division-row.reverse > * { direction: ltr; }
}

.division-row__media {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	background: var(--ink);
}
.division-row__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.division-row:hover .division-row__media img { transform: scale(1.035); }

.division-row__media--pattern {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(90deg, var(--wood) 0 2px, transparent 2px 34px),
		linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.division-row__media--pattern .griffin-motif {
	position: static;
	width: 120px;
	opacity: .35;
	filter: none;
}

.division-row__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-lg) var(--container-pad);
}
.division-row__num {
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--gold-deep);
	letter-spacing: .1em;
	margin-bottom: 1.2rem;
}
.division-row__text h3 { margin-bottom: 1.1rem; }
.division-row__text p { color: var(--text-muted); max-width: 46ch; font-size: 1.05rem; }
.division-row__text .rule { max-width: 60px; margin-block: 1.4rem; background: var(--gold-deep); height: 2px; }

/* ============================================================
   PROPERTY LOCATIONS
   ============================================================ */
.locations {
	position: relative;
	background: var(--ink);
	color: var(--text-on-dark);
	padding-block: var(--space-2xl);
	overflow: hidden;
}
.locations .section-intro .lede { color: var(--text-on-dark-muted); }
.locations__grid {
	margin-top: var(--space-lg);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: rgba(249,246,240,.12);
	border: 1px solid rgba(249,246,240,.12);
}
@media (min-width: 700px) {
	.locations__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
	.locations__grid { grid-template-columns: repeat(5, 1fr); }
}
.location-card {
	background: var(--ink-soft);
	padding: var(--space-md) var(--space-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	transition: background var(--dur-fast) var(--ease);
}
.location-card:hover { background: #263429; }
.location-card img {
	max-height: 92px;
	width: auto;
	max-width: 100%;
	filter: brightness(0) invert(1);
	opacity: .92;
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.location-card:hover img { opacity: 1; transform: translateY(-2px); }

.locations .griffin-motif--corner {
	right: -40px; top: -40px;
	width: 280px;
	opacity: .05;
}

/* ============================================================
   ABOUT / CONTACT
   ============================================================ */
.about-contact { background: var(--paper); padding-block: var(--space-2xl); }
.ac__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}
@media (min-width: 960px) {
	.ac__grid { grid-template-columns: 1.1fr .9fr; }
}
.ac__copy h2 { margin-bottom: var(--space-sm); }
.ac__copy .lede { margin-bottom: var(--space-md); }
.ac__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.ac__card {
	background: var(--ink);
	color: var(--text-on-dark);
	padding: var(--space-lg);
	position: relative;
	overflow: hidden;
}
.ac__card .griffin-motif { right: -30px; bottom: -30px; width: 220px; opacity: .06; }
.ac__field { position: relative; z-index: 1; }
.ac__field + .ac__field { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid rgba(249,246,240,.14); }
.ac__field .eyebrow { display: block; margin-bottom: .4rem; }
.ac__field a, .ac__field span.value { font-family: var(--font-display); font-size: 1.25rem; }
.ac__field .placeholder { color: var(--text-on-dark-muted); font-style: italic; font-family: var(--font-body); font-size: .95rem; }

/* Contact form */
.contact-form { margin-top: var(--space-lg); max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); margin-bottom: var(--space-sm); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field label {
	display: block;
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: .5rem;
}
.form-field input, .form-field textarea {
	width: 100%;
	background: var(--warm-white);
	border: 1px solid var(--stone-line);
	padding: .9rem 1rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text-ink);
	border-radius: var(--radius);
	transition: border-color var(--dur-fast) var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold-deep); }
.contact-form .btn-primary { margin-top: .5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--ink);
	color: var(--text-on-dark-muted);
	padding-block: var(--space-lg) var(--space-md);
	position: relative;
	overflow: hidden;
}
.footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-lg);
	padding-bottom: var(--space-lg);
}
.footer__brand img { height: 46px; width: auto; border-radius: 3px; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: .92rem; }
.footer__nav ul { display: flex; flex-direction: column; gap: .65rem; }
.footer__nav a { font-size: .92rem; transition: color var(--dur-fast) var(--ease); }
.footer__nav a:hover { color: var(--text-on-dark); }
.footer__col h4 {
	font-family: var(--font-body);
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.1rem;
	font-weight: 700;
}
.footer__cols { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-size: .82rem;
	padding-top: var(--space-md);
}
.site-footer .griffin-motif {
	right: -20px; bottom: -60px;
	width: 260px;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-hero {
	background: var(--ink);
	color: var(--text-on-dark);
	padding-block: calc(var(--space-2xl) + 3rem) var(--space-lg);
	text-align: left;
}
.gallery-hero .lede { color: var(--text-on-dark-muted); margin-top: 1rem; max-width: 60ch; }

.gallery-grid {
	padding-block: var(--space-lg) var(--space-2xl);
	column-count: 1;
	column-gap: var(--space-sm);
}
@media (min-width: 640px) { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }

.gallery-item {
	break-inside: avoid;
	margin-bottom: var(--space-sm);
	position: relative;
	overflow: hidden;
	background: var(--off-white);
	cursor: zoom-in;
}
.gallery-item img {
	width: 100%;
	transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 1rem 1.2rem;
	font-size: .82rem;
	letter-spacing: .04em;
	color: var(--text-on-dark);
	background: linear-gradient(0deg, rgba(20,32,26,.78), transparent);
	opacity: 0;
	transition: opacity var(--dur-fast) var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; }

.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(20,32,26,.96);
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 90vw; width: auto; margin-inline: auto; }
.lightbox__close {
	position: absolute; top: var(--space-md); right: var(--container-pad);
	background: none; border: 0; color: var(--text-on-dark);
	font-size: 2rem; line-height: 1;
}
.lightbox figcaption { color: var(--text-on-dark-muted); text-align:center; margin-top: 1rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Utility */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
