/* ========================================
   羅東博愛藥劑科 - Hiring Website
   Editorial Luxury Design System
   ======================================== */

/* CSS Custom Properties */
:root {
	/* Color Palette */
	--color-forest: #1a3a2f;
	--color-forest-dark: #0f2920;
	--color-forest-light: #2d5a4a;
	--color-cream: #f8f5f0;
	--color-cream-dark: #ebe5da;
	--color-gold: #c4a35a;
	--color-gold-light: #d4b978;
	--color-gold-dark: #a8893e;
	--color-charcoal: #2d2d2d;
	--color-charcoal-light: #4a4a4a;
	--color-white: #ffffff;
	--color-black: #000000;

	/* Typography */
	--font-serif: 'Noto Serif TC', 'Times New Roman', serif;
	--font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Spacing */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;
	--space-3xl: 10rem;

	/* Transitions */
	--ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
	--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
	--transition-fast: 0.2s var(--ease-out-quart);
	--transition-base: 0.4s var(--ease-out-expo);
	--transition-slow: 0.8s var(--ease-out-expo);

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
	--shadow-gold: 0 4px 20px rgba(196, 163, 90, 0.3);

	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-sans);
	font-weight: 400;
	line-height: 1.7;
	color: var(--color-charcoal);
	background-color: var(--color-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	opacity: 0.03;
	pointer-events: none;
	z-index: 9999;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

ul, ol {
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

em {
	font-style: normal;
	color: var(--color-gold);
}

strong {
	font-weight: 700;
	color: var(--color-gold-dark);
}

/* Container */
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--space-lg);
}

/* ========================================
   Navigation
   ======================================== */
.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: var(--space-md) 0;
	transition: background var(--transition-base), padding var(--transition-base);
}

.main-nav.scrolled {
	background: rgba(248, 245, 240, 0.95);
	backdrop-filter: blur(20px);
	padding: var(--space-sm) 0;
	box-shadow: var(--shadow-sm);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--space-lg);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	position: relative;
}

.nav-logo img {
	height: 48px;
	width: auto;
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-logo .logo-white {
	display: block;
}

.nav-logo .logo-color {
	display: none;
}

.main-nav.scrolled .nav-logo .logo-white {
	display: none;
}

.main-nav.scrolled .nav-logo .logo-color {
	display: block;
}

.nav-logo:hover img {
	transform: scale(1.05);
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
}

.nav-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-white);
	position: relative;
	padding: var(--space-xs) 0;
	transition: color var(--transition-fast);
}

.main-nav.scrolled .nav-menu a {
	color: var(--color-charcoal);
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-gold);
	transition: width var(--transition-base);
}

.nav-menu a:hover::after {
	width: 100%;
}

.nav-cta {
	background: var(--color-gold) !important;
	color: var(--color-forest-dark) !important;
	padding: var(--space-xs) var(--space-md) !important;
	border-radius: var(--radius-sm);
	font-weight: 600 !important;
	transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta:hover {
	background: var(--color-gold-light) !important;
	transform: translateY(-2px);
}

.nav-cta::after {
	display: none !important;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: var(--space-xs);
}

.nav-toggle span {
	width: 24px;
	height: 2px;
	background: var(--color-white);
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.main-nav.scrolled .nav-toggle span {
	background: var(--color-charcoal);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	padding: var(--space-sm) var(--space-lg);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: all var(--transition-fast);
	cursor: pointer;
}

.btn-primary {
	background: var(--color-gold);
	color: var(--color-forest-dark);
	box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
	background: var(--color-gold-light);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(196, 163, 90, 0.4);
}

.btn-outline {
	background: transparent;
	color: var(--color-white);
	border: 2px solid var(--color-white);
}

.btn-outline:hover {
	background: var(--color-white);
	color: var(--color-forest);
}

.btn-dark {
	background: var(--color-forest);
	color: var(--color-white);
}

.btn-dark:hover {
	background: var(--color-forest-light);
	transform: translateY(-2px);
}

.btn-full {
	width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

@media (max-width: 768px) {
	.hero {
		align-items: stretch;
	}
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-bg picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.hero-content {
	text-align: center;
	color: var(--color-white);
	padding: 120px var(--space-lg) 120px;
	max-width: 900px;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}

@media (max-width: 768px) {
	.hero-content {
		padding: 100px var(--space-md) var(--space-xl);
		min-height: 100vh;
	}

	.hero-badge {
		margin-bottom: var(--space-sm);
	}

	.hero-scroll {
		bottom: var(--space-sm);
	}

	.hero-actions {
		margin-bottom: 80px;
	}
}

.hero-badge {
	display: inline-block;
	padding: var(--space-xs) var(--space-md);
	background: var(--color-gold);
	border: 1px solid var(--color-gold);
	color: var(--color-forest-dark);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: var(--radius-xl);
	margin-bottom: var(--space-lg);
}

.hero-top,
.hero-bottom {
	width: 100%;
}

.hero-title {
	margin-bottom: 0;
}

.hero-title-sub {
	display: block;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 400;
	letter-spacing: 0.3em;
	margin-bottom: var(--space-xs);
	opacity: 0.9;
}

.hero-title-main {
	display: block;
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 900;
	line-height: 1.1;
}

.hero-title-main em {
	background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: var(--space-md);
	line-height: 1.8;
	opacity: 0.9;
}

.hero-actions {
	display: flex;
	gap: var(--space-md);
	justify-content: center;
	flex-wrap: wrap;
}

.hero-scroll {
	position: absolute;
	bottom: var(--space-md);
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: var(--color-white);
	opacity: 0.7;
}

.hero-scroll span {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
}

.scroll-indicator {
	width: 24px;
	height: 40px;
	border: 2px solid var(--color-white);
	border-radius: 12px;
	margin: 0 auto;
	position: relative;
}

.scroll-indicator::before {
	content: '';
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: var(--color-white);
	border-radius: 2px;
	animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
	50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Hero Animations */
.animate-fade-up {
	opacity: 0;
	transform: translateY(40px);
	animation: fadeUp 1s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto var(--space-2xl);
}

.section-header-left {
	text-align: left;
	margin: 0 0 var(--space-lg);
}

.section-header-light .section-label,
.section-header-light .section-title,
.section-header-light .section-desc {
	color: var(--color-white);
}

.section-label {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin-bottom: var(--space-sm);
}

.section-title {
	margin-bottom: var(--space-sm);
}

.section-desc {
	font-size: 1.1rem;
	color: var(--color-charcoal-light);
}

/* ========================================
   Features Section
   ======================================== */
.features {
	padding: var(--space-3xl) 0;
	background: var(--color-cream);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
	margin-bottom: var(--space-2xl);
}

.feature-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background: var(--color-gold);
	transition: height var(--transition-slow);
}

.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
	height: 100%;
}

.feature-card-large {
	background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
	color: var(--color-white);
}

.feature-card-large::before {
	background: var(--color-gold);
}

.feature-card-large .feature-highlight strong {
	color: var(--color-gold);
}

.feature-icon {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-cream);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-md);
}

.feature-card-large .feature-icon {
	background: rgba(196, 163, 90, 0.2);
}

.feature-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--color-forest);
}

.feature-card-large .feature-icon svg {
	stroke: var(--color-gold);
}

.feature-content h3 {
	font-size: 1.5rem;
	margin-bottom: var(--space-sm);
}

.feature-highlight {
	font-size: 1.25rem;
	margin-bottom: var(--space-md);
}

.feature-highlight strong {
	font-size: 2.5rem;
	font-family: var(--font-serif);
}

.feature-list {
	margin-bottom: var(--space-md);
}

.feature-list li {
	padding: var(--space-xs) 0;
	padding-left: var(--space-md);
	position: relative;
}

.feature-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	background: var(--color-gold);
	border-radius: 50%;
}

.feature-note {
	font-size: 0.85rem;
	opacity: 0.7;
	font-style: italic;
}

/* Dorm Showcase */
.dorm-showcase {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--space-xl);
	align-items: center;
	background: var(--color-white);
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.dorm-image {
	height: 400px;
	overflow: hidden;
}

.dorm-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.dorm-showcase:hover .dorm-image img {
	transform: scale(1.05);
}

.dorm-info {
	padding: var(--space-xl);
}

.dorm-badge {
	display: inline-block;
	background: var(--color-gold);
	color: var(--color-forest-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-md);
}

.dorm-info h3 {
	font-size: 2rem;
	margin-bottom: var(--space-sm);
}

.dorm-info p {
	color: var(--color-charcoal-light);
	margin-bottom: var(--space-lg);
}

/* ========================================
   About Section
   ======================================== */
.about {
	padding: var(--space-3xl) 0;
	background: var(--color-forest);
}

.about-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-lg);
}

.about-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	transition: transform var(--transition-base), background var(--transition-base);
}

.about-card:hover {
	transform: translateY(-8px);
	background: rgba(255, 255, 255, 0.1);
}

.about-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(196, 163, 90, 0.15);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-md);
}

.about-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--color-gold);
}

.about-card h3 {
	color: var(--color-white);
	font-size: 1.25rem;
	margin-bottom: var(--space-md);
}

.about-card ul {
	color: rgba(255, 255, 255, 0.8);
}

.about-card li {
	padding: var(--space-xs) 0;
	font-size: 0.95rem;
}

.about-card a {
	color: var(--color-gold);
	font-weight: 500;
	transition: color var(--transition-fast);
}

.about-card a:hover {
	color: var(--color-gold-light);
}

/* ========================================
   Stories Section
   ======================================== */
.stories {
	padding: var(--space-3xl) 0;
	background: var(--color-cream);
}

.stories-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.story-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.story-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.story-image {
	height: 320px;
	overflow: hidden;
	position: relative;
}

.story-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(transparent, var(--color-white));
}

.story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transition: transform var(--transition-slow);
}

.story-card:hover .story-image img {
	transform: scale(1.05);
}

.story-content {
	padding: var(--space-lg);
	position: relative;
}

.story-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: var(--space-sm);
}

.story-name {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-forest);
}

.story-title {
	font-size: 0.85rem;
	color: var(--color-gold);
	font-weight: 500;
}

.story-excerpt {
	color: var(--color-charcoal-light);
	margin-bottom: var(--space-md);
	line-height: 1.8;
}

.story-full {
	display: none;
	color: var(--color-charcoal-light);
	line-height: 1.9;
}

.story-full p {
	margin-bottom: var(--space-md);
}

.story-card.expanded .story-excerpt {
	display: none;
}

.story-card.expanded .story-full {
	display: block;
}

.story-toggle {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--color-gold);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0;
	transition: color var(--transition-fast);
}

.story-toggle:hover {
	color: var(--color-gold-dark);
}

.story-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform var(--transition-fast);
}

.story-card.expanded .story-toggle svg {
	transform: rotate(180deg);
}

.story-card.expanded .toggle-text::before {
	content: '收起';
}

.story-card:not(.expanded) .toggle-text::before {
	content: '閱讀更多';
}

.story-toggle .toggle-text {
	font-size: 0;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
	padding: var(--space-3xl) 0;
	background: var(--color-forest);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: var(--space-md);
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	cursor: zoom-in;
}

.gallery-item-wide {
	grid-column: span 2;
}

.gallery-item-tall {
	grid-row: span 2;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 50%, rgba(26, 58, 47, 0.9) 100%);
	display: flex;
	align-items: flex-end;
	padding: var(--space-md);
	opacity: 0;
	transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-overlay span {
	color: var(--color-white);
	font-weight: 600;
	font-size: 1rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
	padding: var(--space-3xl) 0;
	background: var(--color-cream);
}

.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: var(--space-2xl);
	align-items: start;
}

.contact-intro {
	font-size: 1.1rem;
	color: var(--color-charcoal-light);
	margin-bottom: var(--space-xl);
}

.contact-details {
	margin-bottom: var(--space-xl);
}

.contact-item {
	display: flex;
	gap: var(--space-md);
	padding: var(--space-md) 0;
	border-bottom: 1px solid var(--color-cream-dark);
}

.contact-item:last-child {
	border-bottom: none;
}

.contact-item svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	stroke: var(--color-gold);
}

.contact-item strong {
	display: block;
	color: var(--color-charcoal);
	font-weight: 600;
	margin-bottom: 4px;
}

.contact-item span {
	color: var(--color-charcoal-light);
	font-size: 0.95rem;
}

.contact-bonus {
	display: flex;
	gap: var(--space-md);
	background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
	color: var(--color-white);
	padding: var(--space-lg);
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-xl);
}

.contact-bonus svg {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	stroke: var(--color-gold);
}

.contact-bonus strong {
	color: var(--color-gold);
}

.contact-bonus p {
	margin: 0;
	line-height: 1.6;
}

.contact-traffic h4 {
	font-size: 1.1rem;
	margin-bottom: var(--space-sm);
}

.contact-traffic ul {
	margin-bottom: var(--space-md);
}

.contact-traffic li {
	padding: var(--space-xs) 0;
	padding-left: var(--space-md);
	position: relative;
	color: var(--color-charcoal-light);
}

.contact-traffic li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	background: var(--color-gold);
	border-radius: 50%;
}

.contact-traffic img {
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	box-shadow: var(--shadow-md);
}

.contact-form h3 {
	font-size: 1.75rem;
	text-align: center;
	margin-bottom: var(--space-xl);
	color: var(--color-forest);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
}

.form-group {
	margin-bottom: var(--space-md);
}

.form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-charcoal);
	margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: var(--space-sm);
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--color-charcoal);
	background: var(--color-cream);
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-gold);
	background: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--color-charcoal-light);
	opacity: 0.6;
}

.form-group select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
	border-color: #c44a4a;
	background: #fff5f5;
}

.form-group .error-message {
	display: none;
	font-size: 0.85rem;
	color: #c44a4a;
	margin-top: var(--space-xs);
}

.form-group.error .error-message {
	display: block;
}

.contact-form .btn {
	margin-top: var(--space-md);
	padding: var(--space-md) var(--space-xl);
	font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
	background: var(--color-forest-dark);
	padding: var(--space-xl) 0;
}

.footer-content {
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
	height: 48px;
	width: auto;
	margin: 0 auto var(--space-md);
	opacity: 0.8;
}

.footer p {
	font-size: 0.9rem;
	margin-bottom: var(--space-xs);
}

.footer-credit {
	font-size: 0.8rem !important;
	opacity: 0.5;
}

/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered delays */
.features-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.about-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.about-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.about-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.about-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.stories-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stories-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stories-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stories-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.stories-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.stories-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

.gallery-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.gallery-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.gallery-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.gallery-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.gallery-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.35s; }
.gallery-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.4s; }
.gallery-grid .animate-on-scroll:nth-child(9) { transition-delay: 0.45s; }
.gallery-grid .animate-on-scroll:nth-child(10) { transition-delay: 0.5s; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
	.features-grid {
		grid-template-columns: 1fr;
	}

	.about-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--color-forest);
		flex-direction: column;
		align-items: flex-start;
		padding: var(--space-3xl) var(--space-xl);
		gap: var(--space-md);
		transition: right var(--transition-base);
		box-shadow: var(--shadow-lg);
	}

	.nav-menu.active {
		right: 0;
	}

	.nav-menu a {
		color: var(--color-white) !important;
		font-size: 1.1rem;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}

	.dorm-showcase {
		grid-template-columns: 1fr;
	}

	.dorm-image {
		height: 300px;
	}

	.contact-wrapper {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	:root {
		--space-lg: 1.5rem;
		--space-xl: 2.5rem;
		--space-2xl: 4rem;
		--space-3xl: 6rem;
	}

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

	/* 手機版直式照片對齊調整 */
	.hero-bg img {
		object-position: center top;
	}

	.hero-title-main {
		font-size: clamp(2.5rem, 10vw, 4rem);
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.hero-actions .btn {
		width: 100%;
		max-width: 280px;
	}

	.about-grid {
		grid-template-columns: 1fr;
	}

	.stories-grid {
		grid-template-columns: 1fr;
	}

	.story-image {
		height: 280px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}

	.gallery-item-wide,
	.gallery-item-tall {
		grid-column: auto;
		grid-row: auto;
	}

	.form-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hero-badge {
		font-size: 0.75rem;
		padding: 6px var(--space-sm);
	}

	.feature-card {
		padding: var(--space-lg);
	}

	.section-header {
		margin-bottom: var(--space-xl);
	}

	.gallery-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 200px;
	}

	.contact-form-wrapper {
		padding: var(--space-lg);
	}
}

/* ========================================
   Lightbox Customization
   ======================================== */
.lb-outerContainer {
	border-radius: var(--radius-lg) !important;
}

.lb-dataContainer {
	padding: var(--space-md) !important;
}

.lb-caption {
	font-family: var(--font-sans) !important;
	font-size: 1rem !important;
}
