/* Troop 45 Flags - Static Site Styles */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Federo&family=Roboto:wght@400;500;600&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Roboto', Sans-serif;
  font-weight: 400;
  color: #383838;
  background: #fff;
}
a { color: #143C74; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: disc; padding-left: 1.5em; }
li { margin-bottom: 0.25em; }
h1 { font-family: 'Federo', Sans-serif; font-weight: 400; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  font-size: 0;
}

/* ===== HEADER ===== */
.site-header {
  background-color: #000000;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo a {
  display: block;
}
.site-header .logo img {
  width: 266px; /* 76% of 350px */
  max-width: 266px;
}

/* ===== NAVIGATION ===== */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav ul li { margin: 0; }
.site-nav ul li a {
  color: #ffffff;
  font-family: 'Roboto', Sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  display: block;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: #D10000;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.site-nav ul li a:hover::after,
.site-nav ul li a.active::after {
  transform: scaleX(1);
}
.site-nav ul li a:hover {
  color: #D10000;
  text-decoration: none;
}

/* Mobile burger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #D09E17;
}

/* ===== MAIN CONTENT ===== */
main { min-height: 60vh; }

/* ===== HERO BANNER ===== */
.hero-banner {
  width: 100%;
  line-height: 0;
}
.hero-banner a { display: block; }
.hero-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== PAGE INTRO SECTION ===== */
.page-intro {
  max-width: 1080px;
  margin: 25px auto 0;
  padding: 0;
  text-align: center;
  position: relative;
}
.page-intro .brand-image {
  width: 26%;
  margin: -200px auto 0;
  border: 2px solid #000;
  border-radius: 12px;
}
.page-intro h1 {
  font-size: 1.8em;
  margin: 0.5em 0 0.4em;
}
.page-intro p {
  font-size: 1em;
  margin-bottom: 0.5em;
}
.intro-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: 'Roboto', Sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, color 0.2s;
}
.btn-primary {
  background-color: #D10000;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #a30000;
  color: #ffffff;
  text-decoration: none;
}
.btn-outline {
  background-color: #ffffff;
  color: #143C74;
  border: 1.5px solid #143C74;
  font-family: 'Federo', Sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 10px 22px;
}
.btn-outline:hover {
  background-color: #143C74;
  color: #ffffff;
  text-decoration: none;
}
.btn-sm {
  font-size: 13px;
  padding: 6px 16px;
}

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid #000;
  margin: 15px 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.support-text {
  text-align: center;
  font-weight: bold;
  max-width: 1080px;
  margin: -12px auto;
  padding: 0 15px;
}

/* ===== ICON GRID (3-col) ===== */
.icon-grid-section {
  max-width: 778px;
  margin: 0 auto 150px;
  padding: 0 20px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 932px;
  margin: 0 auto;
}
.icon-grid-item {
  padding: 0 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon-grid-item img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 10px;
}
.icon-grid-item .btn-outline {
  margin-top: -10px;
}

/* ===== FLAG SERVICE PAGE ===== */
.service-page-banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.service-content {
  max-width: 1140px;
  margin: 30px auto;
  padding: 0 20px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.service-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}
.service-card h1 {
  font-size: 1.5em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card p {
  margin-bottom: 10px;
  line-height: 1.6;
}
.service-card ul {
  margin-bottom: 16px;
  line-height: 1.8;
}
.service-card .btn {
  margin-top: 8px;
}

.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}
.map-text h1 {
  font-size: 1.6em;
  margin-bottom: 12px;
}
.map-text p { margin-bottom: 10px; line-height: 1.6; }
.map-text ul { line-height: 2; }
.map-img img {
  width: 100%;
  border-radius: 6px;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  width: 100%;
  line-height: 0;
}
.about-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}
.about-content {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 30px;
}
.about-content h1 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}
.about-section h2 {
  font-family: 'Federo', Sans-serif;
  font-weight: 400;
  font-size: 1.5em;
  margin-bottom: 14px;
  color: #000;
}
.about-section p {
  line-height: 1.8;
  margin-bottom: 12px;
}
.about-section a {
  color: #143C74;
}
.about-buttons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 30px;
  text-align: center;
}
.contact-content h1 {
  font-size: 2em;
  margin-bottom: 10px;
}
.contact-subtitle {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #54595F;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.contact-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  background: #f9f9f9;
}
.contact-card img {
  width: 100px;
  margin: 0 auto 16px;
}
.contact-card h2 {
  font-family: 'Federo', Sans-serif;
  font-weight: 400;
  margin-bottom: 10px;
  font-size: 1.2em;
}
.contact-card p {
  color: #54595F;
  margin-bottom: 16px;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ===== INQUIRY FORM PAGES ===== */
.inquiry-content {
  max-width: 700px;
  margin: 50px auto;
  padding: 0 30px;
}
.inquiry-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}
.inquiry-hero img {
  width: 100%;
  border-radius: 6px;
}
.inquiry-text h1 {
  font-size: 1.8em;
  margin-bottom: 14px;
}
.inquiry-text p {
  line-height: 1.7;
  margin-bottom: 10px;
  color: #54595F;
}

.inquiry-form {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  margin-top: 10px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9em;
}
.form-group label .required { color: #D10000; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Roboto', Sans-serif;
  font-size: 0.95em;
  width: 100%;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #143C74;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #143C74;
}
.form-note {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 20px;
}
.form-submit {
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 4px;
  padding: 16px;
  margin-top: 16px;
  color: #2e7d32;
  font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1140px;
  margin: 10px auto;
  padding: 6px 20px;
  font-size: 0.85em;
  color: #888;
}
.breadcrumb a { color: #143C74; }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
.site-footer {
  background-color: #000000;
  padding: 30px 50px;
  text-align: center;
  margin-top: 40px;
}
.site-footer .footer-logo {
  display: block;
  margin: 0 auto 16px;
  width: 200px;
}
.site-footer .copyright {
  color: #ffffff;
  font-size: 0.9em;
  margin-bottom: 8px;
}
.site-footer .footer-note {
  color: #aaa;
  font-size: 0.85em;
  margin-bottom: 16px;
  line-height: 1.6;
}
.site-footer .footer-note a {
  color: #e8c204;
}
.site-footer .footer-note a:hover {
  color: #f5d84a;
  text-decoration: none;
}
.site-footer .edmediaco-logo {
  display: block;
  margin: 0 auto;
  width: 120px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.site-footer .edmediaco-logo:hover {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .site-header { padding: 0 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .map-section { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .inquiry-hero { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .site-header { padding: 0 10px; }
  .site-header .logo img { width: 180px; }

  /* Mobile nav */
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #000;
    padding: 10px 0;
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul li a { padding: 12px 20px; }
  .nav-toggle { display: flex; }

  .hero-banner img { height: 175px; object-fit: cover; }
  .page-intro .brand-image { width: 45%; margin-top: -153px; }
  .page-intro { padding: 0 15px; }
  .intro-buttons { flex-direction: column; align-items: stretch; }
  .intro-buttons .btn { text-align: center; }

  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .icon-grid-item { padding: 0; }
  .icon-grid-item img { width: 90%; }
  .icon-grid-item .btn-outline { margin-top: -10px; font-size: 13px; padding: 6px 8px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .icon-grid-section { margin-bottom: 60px; }
  .site-footer { padding: 20px 20px; }
}
