/* Contact page-specific styles */
:root { --logo-size: 67px; }
/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: #FDFBF0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    font-family: "Sansation";
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.8; }

.logo-img {
    height: var(--logo-size);
    width: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a:focus {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.nav a.active {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--brand-800);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.has-dropdown .dropdown {
    position: absolute;
	right: 0;
    left: auto;
    top: 100%;
    min-width: 250px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    display: none;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { padding: 0; }
.dropdown a { 
	display: block; 
	padding: 10px 14px; 
	color: var(--brand); 
	font-weight: 700; 
	line-height: 1.5; 
	white-space: normal; 
	text-decoration: none;
}
.dropdown a:hover { 
	background: #FDFBF0; 
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Mobile */
@media (max-width: 720px) {
	.nav ul {
		display: none;
		position: absolute;
		right: 20px;
		top: 64px;
		background: #FDFBF0; 
		padding: 14px;
		border: 1px solid #e5e5df;
		border-radius: 6px;
		flex-direction: column;
		gap: 12px;
	}
	.nav ul.open { display: flex; }
	.mobile-nav-toggle {
		display: inline-block;
		background: transparent;
		border: 0;
		font-size: 22px;
	}
}

/* Contact Hero Section */
.contact-hero { 
    position: relative; 
    padding: 120px 0 200px 0; 
    background: #FDFBF0; 
}
.contact-hero-bg { 
	position: absolute; 
	inset: 0; 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	opacity: 1.00; 
}
.contact-hero-overlay { 
	position: absolute; 
	inset: 0; 
	background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)); 
}
.contact-hero .container { 
    position: relative; 
    max-width: 980px; 
    margin: 0 auto; 
    padding-left: 16px; 
    padding-right: 16px; 
}
.contact-hero h1 { 
    letter-spacing: 1px; 
    color: var(--brand); 
    text-align: center; 
    margin: 0; 
    font-size: clamp(24px, 3.6vw, 40px); 
    position: relative; 
    padding-bottom: 10px; 
}
.contact-hero h1::after { 
	content: ""; 
	display: none; 
	width: 0; 
	height: 0; 
}

/* Contact Form Grid */
.contact-grid { 
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	gap: 40px; 
	background: var(--brand); 
	padding: 60px; 
	border-radius: 8px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
	max-width: 1000px; 
	margin: -120px auto 0 auto; 
	position: relative; 
	z-index: 10; 
}

/* Contact Info */
.contact-info { 
	background: transparent; 
	color: var(--white); 
	padding: 6px 8px; 
	border-radius: 6px; 
}
.contact-info h3 { 
	margin: 6px 0 10px 0; 
	font-family: "Amagro"; 
	font-style: normal; 
	font-synthesis: none; 
	display: flex; 
	align-items: center; 
	gap: 8px; 
}
.contact-info h3 svg { 
	width: 18px; 
	height: 18px; 
	fill: currentColor; 
	opacity: .95; 
}
.contact-info p {
	margin: 0 0 12px 0;
	color: #FDFBF0;
}

.contact-info .footer-address a {
	color: #FDFBF0;
}

/* Contact Form */
.contact-form form { 
	display: grid; 
	gap: 14px; 
}
.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-radius: 16px;
	background: var(--white);
	font-family: "Sansation";
	color: var(--ink);
	box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.contact-form textarea { 
	min-height: 120px; 
	resize: vertical; 
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { 
	color: #465940; 
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { 
	outline: 2px solid rgba(255,255,255,0); 
	box-shadow: 0 0 0 3px rgba(255,255,255,0.35); 
}
.contact-form button { 
	justify-self: center; 
}
.contact-form .btn { 
	background: var(--white); 
	color: var(--ink); 
	box-shadow: none; 
	border: 1px solid #FDFBF0; 
	border-radius: 24px; 
	padding: 12px 22px; 
}
.contact-form .char-counter {
	margin-top: 0px;
	font-size: 12px;
	color: #FDFBF0;
	text-align: right;
	font-weight: 700;
}
.contact-form .char-counter.warning { color: #f1c40f; }
.contact-form .char-counter.error { color: #e74c3c; }
.contact-form .btn:hover { 
	filter: none; 
	background: #FDFBF0; 
	border-color: #bdb8a6; 
}

.footer-simple .container { 
	text-align: center; 
}
.footer-simple .footer-logo { 
	margin: 0 auto 6px; /* tightened space below logo */
	width: 250px; /* keep existing logo size */
	height: 250px;
	filter: none; 
	background: url('assets/images/logo-footer.png') center/contain no-repeat;
}
.footer-simple h4 { 
	margin: -40px 0 4px 0; 
	font-family: "Sansation"; 
}
.footer-simple .tagline { 
	margin: 4px 0 12px 0; /* tighten spacing above and below tagline */
	color: #FDFBF0; 
	font-size: 16px;
	line-height: 1.4;
}

/* Responsive adjustments for contact footer */
@media (max-width: 900px) {
	.footer-simple .footer-logo { width: 140px; height: 140px; margin-bottom: 8px; }
	.footer-simple .tagline { margin: 6px 0 10px 0; font-size: 15px; }
}

@media (max-width: 480px) {
	.footer-simple .footer-logo { width: 110px; height: 110px; margin-bottom: 6px; }
	.footer-simple .tagline { margin: 4px 0 8px 0; font-size: 14px; }
}
.footer-simple-links { 
	list-style: none; 
	padding: 0; 
	margin: 6px 0 12px 0; 
	display: flex; 
	gap: 18px; 
	justify-content: center; 
	flex-wrap: wrap; 
}
.footer-simple-links a { 
	color: #FDFBF0; 
	text-decoration: none; 
	font-size: 14px; 
}
.footer-simple-links a:hover { 
	text-decoration: underline; 
}
.footer-simple .footer-divider { 
	margin: 14px auto 10px; 
	border: 0; 
	border-top: 1px solid rgba(255,255,255,0.25); 
}
.footer-simple .copyright { 
	font-size: 13px; 
	color: #FDFBF0; 
}

/* Legal links in contact footer - off-white palette */
.footer-simple .legal-link { 
	color: #FDFBF0; 
	text-decoration: none; 
}
.footer-simple .legal-link:hover { 
	text-decoration: underline; 
	color: #FDFBF0; 
}

/* Contact Page Footer Styling */
.site-footer { 
	background: var(--brand); 
	color: var(--white); 
	padding: 36px 0 16px 0; 
}

/* Contact Page Responsive */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ===== MODAL STYLES ===== */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.modal-content {
	position: relative;
	background-color: #FDFBF0;
	margin: 2% auto;
	padding: 0;
	width: 90%;
	max-width: 1200px;
	height: 90vh;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	display: flex;
	overflow: hidden;
}

.modal-sidebar {
	width: 25%;
	background-color: #465940;
	color: #FDFBF0;
	padding: 30px 20px;
	overflow-y: auto;
}

.modal-main {
	width: 75%;
	background-color: #FDFBF0;
	padding: 40px;
	overflow-y: auto;
	position: relative;
}

.modal-main::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: none;
	pointer-events: none;
}

.back-link {
	color: #FDFBF0;
	text-decoration: none;
	font-size: 16px;
	margin-bottom: 30px;
	display: block;
	transition: color 0.3s ease;
}

.back-link:hover {
	color: #FDFBF0;
	text-decoration: underline;
}

.modal-nav ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

.modal-nav li {
	margin-bottom: 15px;
}

.modal-nav a {
	color: #FDFBF0;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.modal-nav a:hover {
	color: #FDFBF0;
	text-decoration: underline;
}

.modal-main h1 {
	font-size: 32px;
	font-weight: bold;
	color: #465940;
	margin: 0 0 30px 0;
	text-align: center;
	font-family: 'Sansation';
}

.modal-main h2 {
	font-size: 20px;
	font-weight: bold;
	color: #465940;
	margin: 30px 0 15px 0;
	font-family: 'Sansation';
}

.modal-main p {
	font-size: 16px;
	line-height: 1.6;
	color: #465940;
	margin-bottom: 15px;
}

.modal-main ul {
	margin: 15px 0;
	padding-left: 20px;
}

.modal-main li {
	font-size: 16px;
	line-height: 1.6;
	color: #465940;
	margin-bottom: 8px;
}

.modal-main a {
	color: #465940;
	text-decoration: underline;
}

.modal-main a:hover {
	color: #465940;
}

.modal-intro {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #465940;
}

section {
	margin-bottom: 25px;
}

/* Close button */
.close {
	color: #465940;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	top: 15px;
	right: 20px;
	cursor: pointer;
}

.close:hover,
.close:focus {
	color: #465940;
	text-decoration: none;
}

/* Responsive modal */
@media (max-width: 768px) {
	.modal-content {
		width: 95%;
		height: 95vh;
		margin: 2.5% auto;
		flex-direction: column;
	}
	
	.modal-sidebar {
		width: 100%;
		height: auto;
		max-height: 200px;
		padding: 20px;
	}
	
	.modal-main {
		width: 100%;
		padding: 20px;
	}
	
	.modal-main h1 {
		font-size: 24px;
		margin-bottom: 20px;
	}
	
	.modal-main h2 {
		font-size: 18px;
		margin: 20px 0 10px 0;
	}
	
	.modal-nav ol {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.modal-nav li {
		margin-bottom: 0;
	}
	
	.modal-nav a {
		font-size: 12px;
		padding: 5px 10px;
		background-color: rgba(70, 89, 64, 0.1);
		border-radius: 4px;
		display: block;
	}
}

@media (max-width: 480px) {
	.modal-content {
		width: 98%;
		height: 98vh;
		margin: 1% auto;
	}
	
	.modal-sidebar {
		padding: 15px;
	}
	
	.modal-main {
		padding: 15px;
	}
	
	.modal-main h1 {
		font-size: 20px;
	}
	
	.modal-main h2 {
		font-size: 16px;
	}
	
	.modal-main p,
	.modal-main li {
		font-size: 14px;
	}
}
