/* CSS Custom Properties */
:root {
  --navy: #0c2340;
  --navy-light: #1d3557;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --accent: #d9531e; /* Safety Orange */
  --accent-hover: #e65100;
  --text-main: #2d3748;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-main); line-height: 1.6; background-color: var(--white); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.5rem; }
p { margin-bottom: 1.2rem; font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { margin-bottom: 1.5rem; padding-left: 2rem; }
li { margin-bottom: 0.5rem; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Layout & Containers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header & Navigation */
.site-header { background-color: var(--navy); color: var(--white); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -0.5px; display: block; }
.logo:hover { color: var(--white); text-decoration: none; }
.logo-sub { display: block; font-size: 0.85rem; color: #a0aec0; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }

/* Desktop Navigation */
.desktop-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
}
.nav-link { color: var(--white); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.5rem; border-radius: 4px; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--white); min-width: 280px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: flex; flex-direction: column; }
.dropdown-item { padding: 0.875rem 1.25rem; color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--off-white); font-size: 0.95rem; }
.dropdown-item:hover { background-color: var(--off-white); color: var(--accent); text-decoration: none; }
.dropdown-item:last-child { border-bottom: none; }

/* Mobile Navigation */
.menu-toggle { background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; padding: 0.25rem; min-height: 48px; min-width: 48px; }
.mobile-nav { display: none; flex-direction: column; background-color: var(--navy-light); padding: 1rem 1.5rem; }
.mobile-nav.active { display: flex; }
.mobile-nav .nav-link { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--white); font-size: 1.1rem; }
.mobile-sub-menu { padding-left: 1.5rem; display: flex; flex-direction: column; }
.mobile-sub-menu .nav-link { font-size: 1rem; color: #cbd5e1; padding: 0.75rem 0; }

/* Buttons & CTAs */
.btn { display: inline-flex; align-items: center; justify-content: center; background-color: var(--accent); color: var(--white); padding: 0.875rem 1.75rem; border-radius: 6px; font-weight: 700; text-align: center; border: none; cursor: pointer; min-height: 48px; transition: background-color 0.2s ease, transform 0.2s ease; text-decoration: none; font-size: 1.1rem; box-shadow: 0 4px 6px rgba(217, 83, 30, 0.25); }
.btn:hover, .btn:focus { background-color: var(--accent-hover); color: var(--white); transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 12px rgba(217, 83, 30, 0.3); }
.btn-large { padding: 1.25rem 2.5rem; font-size: 1.25rem; }

/* Breadcrumbs */
.breadcrumbs { background-color: var(--off-white); padding: 0.875rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li::after { content: "/"; color: var(--text-muted); margin-left: 0.5rem; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--navy); font-weight: 500; }

/* Hero Section */
.hero { background-color: var(--off-white); padding: 5rem 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: linear-gradient(135deg, var(--off-white) 0%, #e2e8f0 100%); z-index: 0; opacity: 0.5; transform: skewX(-15deg); transform-origin: top right; }
@media (max-width: 768px) { .hero::after { display: none; } }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-size: 0.875rem; background-color: rgba(217, 83, 30, 0.1); padding: 0.25rem 0.75rem; border-radius: 4px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin-bottom: 2.5rem; font-weight: 400; line-height: 1.7; }
.hero img { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); margin-bottom: 2rem; }

/* Main Content Area */
.content-section { padding: 4rem 0 6rem; }
.article-content { max-width: 850px; margin: 0 auto; }
.article-content img { margin: 2.5rem 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.call-box { background-color: var(--navy-light); color: var(--white); padding: 3rem 2rem; border-radius: 12px; margin: 4rem 0; text-align: center; box-shadow: 0 10px 25px rgba(12, 35, 64, 0.15); border-top: 4px solid var(--accent); }
.call-box.light { background-color: var(--off-white); color: var(--text-main); border: 1px solid var(--border); border-top: 4px solid var(--accent); }
.call-box.light h3 { color: var(--navy); }
.call-box.light p { color: var(--text-muted); }
.call-box h3 { color: var(--white); margin-top: 0; margin-bottom: 1rem; font-size: 1.8rem; }
.call-box p { color: #cbd5e1; font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Checklist / Warning Signs */
.warning-signs { background-color: #fff5f5; border-left: 4px solid #e53e3e; padding: 1.5rem 2rem; border-radius: 0 8px 8px 0; margin: 2rem 0; }
.warning-signs h3 { color: #c53030; margin-top: 0; }
.warning-signs ul { margin-bottom: 0; padding-left: 1.2rem; }
.warning-signs li { color: #742a2a; margin-bottom: 0.75rem; }

/* FAQ Section */
.faq-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
details.faq-item { background-color: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
details.faq-item summary { font-size: 1.15rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; min-height: 48px; background-color: var(--off-white); transition: background-color 0.2s; }
details.faq-item summary:hover { background-color: #e2e8f0; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform 0.3s; }
details.faq-item[open] summary::after { content: '-'; transform: rotate(180deg); }
details.faq-item .faq-answer { padding: 1.5rem; border-top: 1px solid var(--border); }
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background-color: var(--navy); color: #cbd5e1; padding: 5rem 0 3rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.875rem; }
.footer-links a { color: #a0aec0; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact p { margin-bottom: 1rem; color: #a0aec0; }
.footer-contact strong { color: var(--white); display: block; margin-bottom: 0.25rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-contact a { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.footer-contact a:hover { color: var(--accent-hover); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; color: #718096; }
.footer-bottom a { color: #a0aec0; }

/* Sticky Mobile Call Bar */
.mobile-call-bar { display: none; }
@media (max-width: 767px) {
  .mobile-call-bar { display: flex; align-items: center; justify-content: center; position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--accent); color: var(--white); padding: 1.25rem 1rem; font-weight: 800; font-size: 1.25rem; z-index: 2000; box-shadow: 0 -4px 10px rgba(0,0,0,0.15); text-decoration: none; letter-spacing: 0.05em; min-height: 60px; }
  .mobile-call-bar:hover, .mobile-call-bar:active { background-color: var(--accent-hover); color: var(--white); text-decoration: none; }
  body { padding-bottom: 70px; /* offset for bar */ }
}
