/* Base */
:root { --bg: #0b1220; --card: #0f172a; --muted: #94a3b8; --text: #e2e8f0; --primary: #22c55e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 5%; }

/* Mobile width restriction */
@media (max-width: 991.98px) {
	body { width: 100vw; overflow-x: hidden; }
	.container { width: 100%; max-width: 100vw; padding: 0 5%; }
	.site-header { width: 100vw; }
	.hero { width: 100vw; }
	.hero-grid { width: 100vw; }
}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--primary); color: #04210f; }
.btn.ghost { border-color: #233146; color: var(--text); background: transparent; }

/* Anchor offset for sticky header */
#quote, #services, #contact, #faq, #quote-title, #services-title, #contact-title, #faq-title { scroll-margin-top: 72px; }

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: blur(8px); background: rgba(11,18,32,0.6); z-index: 10; border-bottom: 1px solid #1e293b; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-container { width: 36px; height: 36px; flex-shrink: 0; }
.logo-image { width: 100%; height: 100%; object-fit: contain; }
.brand-text h1 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text p { margin: 0; font-size: 12px; color: var(--muted); }
.header-actions { gap: 20px;}

/* Mobile menu toggle */
.mobile-menu-toggle { flex-direction: column; background: transparent; border: none; cursor: pointer; padding: 8px; }
.hamburger { width: 20px; height: 2px; background: var(--text); margin: 2px 0; transition: 0.3s; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Mobile navigation */
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,18,32,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #1e293b; padding: 16px 5%; flex-direction: column; gap: 12px; width: 100%; }
.mobile-nav.open { display: flex; }

/* Bootstrap navbar collapsible content styling */
.navbar-collapse {
	background: rgba(11,18,32,0.95);
	backdrop-filter: blur(12px);
	border: 1px solid #1e293b;
	border-radius: 8px;
	margin-top: 8px;
	padding: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	width: auto;
	min-width: 200px;
	z-index: 1000;
}

.navbar-nav .nav-item .btn {
	margin: 4px 0;
	width: 100%;
	justify-content: flex-start;
	padding: 8px 12px;
}

/* Ensure navbar doesn't overflow */
.navbar {
	position: relative;
	overflow: visible;
}

.navbar-toggler {
	position: relative;
	z-index: 1001;
}

/* Hero - full viewport background */
.hero { position: relative; min-height: 100svh; display: grid; align-items: start; }
.hero::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg,#0b1220,#0b1220); z-index: -2; }
.hero::after { content: ""; position: fixed; inset: 0; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), radial-gradient(60% 60% at 50% 40%, rgba(34,197,94,0.15), rgba(0,0,0,0) 60%); z-index: -1; }

/* Grid for content alignment with 5% outer margins via container */
.hero-grid { width: 100%; padding: 0 5%; display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: center; }
.hero-overlay { color: var(--text); }
.hero-overlay h2 { margin: 0; font-size: 44px; }
.hero-overlay p { margin: 6px 0 10px; color: var(--muted); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.badges li { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); color: #86efac; padding: 6px 10px; border-radius: 999px; font-size: 12px; }

/* Mobile slogan */
.mobile-slogan h2 { margin: 0 0 8px; font-size: 24px; color: var(--text); font-weight: 600; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
.mobile-slogan p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }

/* Glass quote panel */
.quote-panel { position: relative; background: rgba(15,23,42,0.5); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; }
.quote-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.12), rgba(255,255,255,0) 35%); pointer-events: none; }
.mobile-toggle { width: 100%; text-align: left; background: transparent; color: var(--text); border: 1px solid #243047; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.chevron { width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); float: right; margin-top: 4px; }
.quote-form-wrap h2 { margin-top: 8px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
label { font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], select, textarea { background: rgba(11,18,32,0.85); color: var(--text); border: 1px solid #233146; border-radius: 10px; padding: 8px 10px; width: 100%; box-sizing: border-box; word-wrap: break-word; overflow-wrap: break-word; }
.radio-group { display: flex; gap: 12px; }
.form-message { min-height: 18px; font-size: 13px; color: #86efac; }

/* Error highlighting */
input.field-error, select.field-error, textarea.field-error { border-color: #ef4444 !important; box-shadow: inset 0 0 0 1px rgba(239,68,68,0.2); }
.inline-compact.error { border: 1px solid #ef4444; border-radius: 8px; padding: 6px 8px; }

/* Dual input (email + phone) */
.dual-input { display: grid; grid-template-columns: 1fr 1fr; position: relative; border: 1px solid #233146; border-radius: 14px; overflow: hidden; background: rgba(11,18,32,0.85); width: 100%; box-sizing: border-box; }
.dual-input input { border: none; outline: none; background: transparent; color: var(--text); padding: 10px 12px; width: 100%; box-sizing: border-box; word-wrap: break-word; overflow-wrap: break-word; }
.dual-input input:first-child { border-right: 0; }
.dual-input::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; width: 1px; background: #233146; transform: rotate(10deg); transform-origin: center; }
.dual-input.field-error { border-color: #ef4444 !important; box-shadow: inset 0 0 0 1px rgba(239,68,68,0.2); }

/* Inline compact urgent */
.inline-compact { display: flex;
	align-items: center; gap: 6px; margin-bottom: 12px; }
.inline-compact .inline-label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.inline-compact .inline-radio { display: inline-flex; align-items: center; gap: 4px; border: none; padding: 0; margin: 0; }
.inline-compact input[type=radio] { margin: 0; accent-color: #22c55e; }

/* Sections */
.services, .testimonials, .faq, .contact { margin-top: 48px; padding: 0 5%; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.service-list li { background: rgba(11,18,32,0.9); border: 1px solid #22314a; padding: 12px; border-radius: 12px; }
.note { color: var(--muted); margin-top: 8px; }
/* Reviews carousel */
.reviews-carousel { overflow: hidden; position: relative; }
.reviews-track { display: flex; animation: scroll 30s linear infinite; gap: 20px; }
.reviews-track:hover { animation-play-state: paused; }
.review-item { flex: 0 0 300px; }
.review-item blockquote { margin: 0 0 8px 0; padding: 16px; background: rgba(11,18,32,0.9); border: 1px solid #22314a; border-radius: 12px; color: #cbd5e1; font-style: italic; min-height: 80px; display: flex; align-items: center; }
.review-author { text-align: right; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 4px; }

@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* FAQ Section */
.faq {
	margin-top: 5% !important;
}

@media (max-width: 991.98px) {
	.faq {
		margin-top: 20% !important;
	}
}

.faq h3 {
	margin: 0 0 24px;
	color: var(--text);
	font-size: 28px;
	font-weight: 600;
	text-align: center;
}

.faq-content {
	max-width: 800px;
	margin: 0 auto;
}

/* Bootstrap Accordion Custom Styling */
.faq-card {
	background: rgba(15,23,42,0.7) !important; /* 半透明深蓝 */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(35,49,70,0.8) !important;
	border-radius: 12px !important;
	margin-bottom: 16px !important;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-card.card {
	background-color: transparent !important;
  }
  

.faq-card:hover {
	border-color: rgba(34,197,94,0.4) !important;
	box-shadow: 0 4px 12px rgba(34,197,94,0.1);
}

.faq-card .card-header {
	background: transparent !important;
	border-bottom: 1px solid rgba(35,49,70,0.8) !important;
	padding: 0 !important;
}

.faq-btn {
	width: 100% !important;
	text-align: left !important;
	color: var(--text) !important;
	background: transparent !important;
	border: none !important;
	padding: 20px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	transition: background-color 0.3s ease !important;
}

.faq-btn:hover {
	background: rgba(34,197,94,0.05) !important;
	color: var(--text) !important;
	text-decoration: none !important;
}

.faq-btn:focus {
	box-shadow: none !important;
	color: var(--text) !important;
}

.faq-icon {
	color: var(--primary) !important;
	font-size: 18px !important;
	transition: transform 0.3s ease !important;
}

.faq-btn[aria-expanded="true"] .faq-icon {
	transform: rotate(45deg) !important;
}

.faq-card .card-body {
	background: rgba(11,18,32,0.3) !important;
	padding: 20px !important;
	color: var(--muted) !important;
}

.faq-card .card-body p {
	margin: 0 0 12px;
	color: var(--muted);
	line-height: 1.6;
}

.faq-card .card-body ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.faq-card .card-body li {
	margin-bottom: 8px;
	color: var(--muted);
	line-height: 1.5;
}

.faq-card .card-body strong {
	color: var(--text);
	font-weight: 600;
}

/* Fallback for old reviews grid */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.reviews blockquote { margin: 0; padding: 12px; background: rgba(11,18,32,0.9); border: 1px solid #22314a; border-radius: 12px; color: #cbd5e1; }

/* Contact form */
.contact-form { max-width: 720px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; }

/* Contact details */
.contact-details { padding: 20px; background: rgba(15,23,42,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(35,49,70,0.8); border-radius: 16px; margin-top: 20px; }
.contact-details h4 { margin: 0 0 16px; color: var(--text); font-size: 18px; }
.contact-info p { margin: 8px 0; color: var(--muted); }
.contact-info a { color: var(--primary); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-message { font-style: italic; color: #86efac; margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid #1e293b; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; color: var(--muted); }

/* Desktop layout: floating form over full-bleed background */
@media (min-width: 992px) {
	.hero-grid { grid-template-columns: 3fr 2fr; min-height: calc(100svh - 64px); align-items: center; }
}

/* Mobile: slogan top, collapsible form below with margin; below-the-fold content after first screen */
@media (max-width: 991.98px) {
	/* Mobile background - black only */
	.hero::before { background: #0b1220; }
	
	.hero-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; padding-bottom: 20px; min-height: 70svh; }
	.mobile-slogan { padding: 0 5%; margin-bottom: 8px; }
	.quote-panel { margin: 0; background: rgba(15,23,42,0.6); }
	.mobile-toggle { display: inline-block; }
	.quote-form-wrap { display: none; }
	.quote-form-wrap.open { display: block; }
	
	/* Move sections below the fold */
	.services { margin-top: 100svh; }
	.testimonials, .contact { margin-top: 20svh; }
	.review-item { flex: 0 0 250px; }
	.reviews-track { gap: 15px; }
	
	/* Ensure full width for mobile elements */
	.site-header { width: 100%; }
	.header-inner { width: 100%; padding: 14px 5%; }
	.mobile-nav { width: 100vw; left: 0; right: 0; }
}
