@import "variables.css";
@import "fonts.css";

/* ==========================================================================
	 RESET & BASE STYLES
	 ========================================================================== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: var(--font-size-base);
}

body {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: white;
	background:
		var(--color-secondary) url('../img/bg_green.png') center 50vh/cover no-repeat;
	height: 100vh;
	background-attachment: fixed;
}

body::after {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: url('../img/x.svg') right -10vh no-repeat;
	background-size: 40% auto;
	opacity: 0.1;
	pointer-events: none;
	z-index: -1;
}

/* ==========================================================================
	ORIENTATION-SPECIFIC STYLES
	========================================================================== */
@media (orientation: landscape) {
	body {
		background-position: center 40vh;
	}

	body::after {
		background-position: right -10vh;
		background-size: 50vw auto;
	}

	main .container {
		margin-top: clamp(2rem, 5vw, 4rem);
	}

	.column_right .inner {
		padding-top: 0.5rem;
	}
}

@media (orientation: portrait) {
	body {
		background-position: center 50vh;
	}

	body::after {
		background-position: right -10vh;
		background-size: auto 110vh;
	}

	main .container {
		margin-top: clamp(6rem, 12vw, 10rem);
	}

	.nav-menu {
		gap: var(--spacing-md);
	}

	.lightbox-content {
		padding: var(--spacing-lg);
	}
}

a {
	text-decoration: none;
	color: inherit;
}

/* Underline for contact links on hover only */
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a.obfuscated-email:hover {
	text-decoration: underline;
}

/* ==========================================================================
	 LAYOUT
	 ========================================================================== */
.container {
	max-width: var(--var-page-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

/* ==========================================================================
	 HEADER & NAVIGATION
	 ========================================================================== */
header {
	color: white;
	padding-top: 5rem;
}

nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: clamp(2.5rem, 10vw, 5rem);
	width: auto;
	display: block;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: var(--spacing-xl);
	align-items: center;
}

.nav-menu a {
	color: white;
	transition: color 0.3s ease;
	position: relative;
	padding-bottom: 4px;
}

/* Animated underline for regular nav links */
.nav-menu a:not(.contact)::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}

.nav-menu a:not(.contact):hover::after {
	width: 100%;
}

.nav-menu a:hover {
	color: white;
}

/* Contact button styling */
.nav-menu a.contact,
a.cta_contact {
	display: inline-block;
	padding: var(--spacing-xs) var(--spacing-md);
	border: 1px solid white;
	border-radius: 2rem;
	transition: all 0.3s ease;
}

.nav-menu a.contact {
	background-color: transparent;
}

a.cta_contact {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	margin-top: clamp(2rem, 10vw, 4rem);
}

.nav-menu a.contact:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

a.cta_contact:hover {
	background-color: transparent;
	border-color: white;
}

/* ==========================================================================
	 TYPOGRAPHY
	 ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: white;
	font-family: var(--font-secondary);
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

h1 {
	color: var(--color-primary);
	font-size: clamp(2.5rem, 8vw, 5rem);
	text-decoration: underline;
}

h2 {
	font-weight: 300;
	font-size: clamp(1.75rem, 5vw, 2rem);
	margin-bottom: 2rem;
}

h3.subheadline {
	font-weight: 300;
	font-size: clamp(1.5rem, 5vw, 2.25rem);
}

h4 {
	font-weight: 300;
	font-size: clamp(1.25rem, 5vw, 1.5rem);
	margin-bottom: 0.5em;
	margin-top: 1rem;
}

p, address {
	max-width: 600px;
	margin-bottom: var(--spacing-md);
	line-height: 1.8;
	font-style: normal;
	font-weight: 300;
	font-size: clamp(1.125rem, 4vw, 1.25rem);
}

dl{
	max-width: 600px;
	line-height: 1.8;
	font-weight: 300;
	font-size: clamp(1.125rem, 4vw, 1.25rem);
}

dd{
	margin-bottom: var(--spacing-md);
}

/* ==========================================================================
	 MAIN CONTENT
	 ========================================================================== */
#wrapper {
	padding-bottom: 6vw;
}

main .container {
	margin-top: clamp(2rem, 8vw, 8rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem 4rem;
}

.top_row {
	flex: 0 0 100%;
}

.column_right .inner {
	max-width: 480px;
	padding-top: 1rem;
}

/* ==========================================================================
	 FOOTER
	 ========================================================================== */
.footer-menu {
	display: none;
}

/* ==========================================================================
	 LIGHTBOX
	 ========================================================================== */
.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	background-color: var(--color-secondary);
	z-index: 1000;
	overflow-y: auto;
	overflow-x: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
	display: block;
	opacity: 1;
}

.lightbox.fade-out {
	opacity: 0;
}

.lightbox-content {
	position: relative;
	color: white;
	padding: var(--spacing-xl);
	max-width: var(--var-page-width);
	margin: 0 auto;
	min-height: 100vh;
	transform: translateY(20px);
	transition: transform 0.3s ease-in-out;
}

.lightbox.active .lightbox-content {
	transform: translateY(0);
}

.lightbox-close {
	position: fixed;
	top: var(--spacing-md);
	right: var(--spacing-md);
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	border-radius: 50%;
	color: white;
	font-size: 2rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.lightbox-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* Lightbox content styles */
.lightbox h2 {
	font-size: var(--font-size-h2);
	margin-bottom: var(--spacing-lg);
	text-align: left;
}

.lightbox h3 {
	font-size: 1.5rem;
	margin: var(--spacing-md) 0 var(--spacing-sm);
}

.lightbox p {
	max-width: none;
	margin-bottom: var(--spacing-sm);
	text-align: left;
}

.lightbox ul,
.lightbox ol {
	margin: 0 0 var(--spacing-sm) var(--spacing-md);
}

.lightbox li {
	margin-bottom: 0.5rem;
	line-height: 1.8;
	font-weight: 300;
	font-size: clamp(1.125rem, 4vw, 1.25rem);
}

/* Lightbox two-column layout */
.lightbox-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-lg);
}

.lightbox-column {
	min-width: 0;
}

/* ==========================================================================
	 RESPONSIVE DESIGN
	 ========================================================================== */
@media (max-width: 1024px) {
	.nav-menu {
		display: none;
	}

	.nav-menu li:last-child {
		display: none;
	}

	footer {
		position: relative;
		padding: 0 var(--spacing-sm);
		/* text-align: center; */
	}

	.footer-menu {
		margin-top: 6rem;
		display: flex;
		justify-content: center;
		gap: var(--spacing-sm);
		font-size: 14px;
	}

	ul.footer-menu li {
		list-style: none;
	}

	#wrapper {
		padding-bottom: 2rem;
	}
}

@media (max-width: 768px) {
	

	.container {
		padding: 0 var(--spacing-md);
	}

	header {
		padding-top: 5vw;
	}

	.logo {
		margin-bottom: 3vw;
	}

	nav .container {
		flex-direction: column;
		gap: var(--spacing-sm);
	}

	.nav-menu {
		gap: var(--spacing-sm);
	}

	.lightbox-content {
		padding: var(--spacing-md);
	}

	/* Two-column layout becomes single column on mobile */
	.lightbox-columns {
		grid-template-columns: 1fr;
	}
}

/* Portrait mode - Extra top padding for lightbox to avoid close button */
@media (orientation: portrait) {
	.lightbox-content {
		padding-top: calc(var(--spacing-xl) + 2rem);
	}
}