/* styles.css - American Systems */

/* Reset / base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  color: #1F2937;
  background-color: #F3F4F6;
}

body {
  line-height: 1.6;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 3rem 0;
}

/* Header */

header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-image: url('flaglogo.jpg');
  background-size: cover;
  background-position: center;
}

.brand-text {
  font-weight: 600;
  color: #111827;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #4B5563;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #2563EB;
}

/* Hamburger button */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 3px;
  background-color: #111827;
  display: block;
  border-radius: 2px;
  transition: 0.3s ease;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.open .hamburger {
  background-color: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile nav */

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 1rem 1.5rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.btn-primary:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #2563EB;
  border-color: #D1D5DB;
}

.btn-secondary:hover {
  background-color: #EFF6FF;
  border-color: #93C5FD;
}

.btn-ghost {
  background-color: transparent;
  color: #4B5563;
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: #E5E7EB;
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: #6B7280;
}

.hero-card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-header {
  max-width: 650px;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #4B5563;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #FFFFFF;
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card-header {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #111827;
}

.card-body {
  font-size: 0.95rem;
  color: #4B5563;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-blue {
  background-color: #DBEAFE;
  color: #1D4ED8;
}

/* Lists */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 0.4rem;
}

.feature-list li::before {
  content: "•";
  color: #2563EB;
  font-weight: 700;
  margin-top: 0.06rem;
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.table th {
  font-weight: 600;
  color: #374151;
}

/* Testimonials */

.testimonial {
  background-color: #FFFFFF;
  border-radius: 0.9rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
  color: #4B5563;
}

.testimonial-footer {
  margin-top: 0.75rem;
  font-weight: 500;
  color: #111827;
}

/* Footer */

footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #6B7280;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: #6B7280;
}

.footer-links a:hover {
  color: #2563EB;
}

/* Utility */

.text-muted {
  color: #6B7280;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* Responsive */

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    position: static;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

/* ==============================
   LEGAL PAGES
   ============================== */
.legal-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1F2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: #2563EB;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #1D4ED8;
}

.narrow {
  max-width: 800px;
}

.notice {
  border-radius: 8px;
  padding: 1.5rem;
}

/* ==============================
   FAQ PAGES
   ============================== */
.faq-item {
  margin-bottom: 3rem;
}

.faq-item h2 {
  font-size: 1.75rem;
  color: #2563EB;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E5E7EB;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.faq-item p,
.faq-item ol,
.faq-item ul {
  margin-bottom: 1rem;
}

.faq-item ol,
.faq-item ul {
  padding-left: 1.5rem;
}

.faq-item li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.faq-item strong {
  color: #111827;
  font-weight: 600;
}
