/* styles.css — Annotated for learning
	 Topics covered below: basic reset, typography, layout, responsive rules, and accessibility.

	 Tip: You can edit these styles and refresh your browser to see how the site changes.
*/

/* -------- Basic reset & typography -------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; line-height: 1.5; color: #202022; }

/* Container centers content and limits width for readable lines */
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

/* -------- Header & navigation -------- */
.site-header { background: #004c97; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand-wrap { display: flex; gap: 0.75rem; align-items: center; }
.brand-tagline { font-size: 1.15rem; color: rgba(255,255,255,0.95); font-weight: 500; opacity: 0.9; }
/* If the brand is an image, keep it aligned and responsive */
.brand img { display: block; height: auto; width: auto; max-height: 128px; }

.primary-nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.primary-nav a { color: #fff; text-decoration: none; font-size: 1.15rem }

.nav-toggle { display: none; background: none; border: none; margin-left: .5rem; }
.hamburger { width: 28px; height: 2px; background: white; display: inline-block; position: relative; }
.hamburger::before, .hamburger::after { content: ""; width: 28px; height: 2px; background: white; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* -------- Hero / CTA -------- */
.hero { background: linear-gradient(120deg, #e6f0ff 0%, #ffffff 100%); padding: 3rem 0; text-align: center; }
.hero h1 { margin: 0 0 0.5rem 0; font-size: 2rem; }
.hero .lead { margin: 0 0 1rem 0; color: #333; }
.btn { display: inline-block; background: #005CD6; color: #fff; padding: .6rem 1.1rem; border-radius: 4px; text-decoration: none; font-weight: 600; }

/* -------- Sections & grid -------- */
.about, .services, .contact { padding: 2rem 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Questions section styling */
.questions { padding-top: 1rem; }
.questions-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.questions-list li { background: #fff; padding: 1rem 1.25rem; border-left: 3px solid #005CD6; border-radius: 6px; }
.card { background: #fff; padding: 1.25rem; box-shadow: 0 1px 6px rgba(0,0,0,0.06); border-radius: 6px; }
.card h3 { margin-top: 0; }

/* -------- Forms -------- */
.contact-form { max-width: 640px; }
.form-row { margin-bottom: 0.75rem; display: flex; flex-direction: column; }
label { font-weight: 600; margin-bottom: 0.25rem; }
input[type="text"], input[type="email"], textarea { padding: 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; }
.form-msg { font-size: 0.95rem; margin-top: 0.5rem; }
.form-msg.error { color: #b00020; }
.form-msg.success { color: #006400; }

.site-footer { background: #0f1724; color: #cbd5e1; padding: 1rem 0; margin-top: 2rem; }
.site-footer a { color: #fff; }

/* -------- Responsive rules -------- */
@media (max-width: 880px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.questions-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.grid { grid-template-columns: 1fr; }
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; align-items: center; }
	/* When .primary-nav has .open class we show it on mobile */
	.primary-nav.open { display: block; background: #004c97; padding: 1rem; margin-top: .75rem; border-radius: 6px; }
	.primary-nav ul { flex-direction: column; gap: .5rem; }
	.hero h1 { font-size: 1.5rem; }
	/* Stack the brand vertically on small screens so the tagline doesn't crowd the nav toggle */
	.brand-wrap { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* Utility classes */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* High-contrast focus state for keyboard users */
:focus { outline: 3px solid #ffb703; outline-offset: 2px; }

/* End of CSS file */
