/* HelideckSafety.com — Main Stylesheet */

:root {
  --navy: #1B2A4A;
  --navy-light: #243656;
  --orange: #E87722;
  --orange-hover: #D06A1E;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --gray-900: #212529;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-hover); }

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span { color: var(--orange); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 24px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero .cta-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.hero .cta-btn:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 119, 34, 0.15);
  border: 1px solid rgba(232, 119, 34, 0.3);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px 50px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--gray-50);
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--navy);
}

.section h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.section p {
  margin-bottom: 16px;
  color: var(--gray-800);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 32px;
}

/* ===== 3-COLUMN CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 119, 34, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== REGULATION CARDS ===== */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.reg-card {
  background: var(--white);
  border-left: 4px solid var(--orange);
  padding: 24px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.reg-card h4 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--navy);
}

.reg-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ===== AUDIENCE TAGS ===== */
.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.audience-tag {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== CONTENT PAGE ===== */
.content-section {
  padding: 60px 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--gray-200);
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.content-section h3 {
  font-size: 1.25rem;
  margin-top: 28px;
}

.content-section ul {
  margin: 12px 0 16px 20px;
}

.content-section li {
  margin-bottom: 8px;
  color: var(--gray-800);
}

/* ===== GLOSSARY TABLE ===== */
.glossary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.glossary-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.glossary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.glossary-table tr:nth-child(even) {
  background: var(--gray-50);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font);
}

.newsletter-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--orange-hover);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 24px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--orange-hover);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 12px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-network {
  color: rgba(255,255,255,0.4);
}

.footer-network a {
  color: var(--orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero { padding: 60px 24px 50px; }
  .hero h1 { font-size: 1.8rem; }
}
