/* Fast Fix It Man — Air Force One livery palette */
:root {
  /* Official-inspired AF1 colors */
  --color-navy: #002868;           /* Dark blue — lower fuselage / primary dark */
  --color-navy-deep: #0A1628;      /* Deep navy — footer, hero base */
  --color-navy-mid: #0A3161;       /* Mid navy — gradients */
  --color-red: #BF0A30;            /* Patriotic red — accents, links, CTAs */
  --color-red-dark: #9B0826;       /* Red hover / pressed */
  --color-gold: #C9A227;           /* Gold stripe accent */
  --color-gold-light: #E8D48B;     /* Gold highlights */
  --color-white: #FFFFFF;

  /* Semantic mappings */
  --color-primary: var(--color-red);
  --color-primary-dark: var(--color-red-dark);
  --color-accent: var(--color-navy);
  --color-bg: #F4F6FA;
  --color-surface: var(--color-white);
  --color-text: var(--color-navy-deep);
  --color-muted: #4A5568;
  --color-border: #C5CED9;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.1);
  --radius: 8px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Header & Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-red);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-navy) 0%,
    var(--color-white) 25%,
    var(--color-red) 50%,
    var(--color-white) 75%,
    var(--color-gold) 100%
  );
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
}

.logo-brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 0.75rem;
  align-items: stretch;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.logo-flag {
  /* Official US flag ratio: 1.9 wide × 1.0 tall (fly × hoist) */
  height: 100%;
  width: auto;
  aspect-ratio: 19 / 10;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.15);
}

.logo:hover {
  color: var(--color-text);
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.15rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero — navy fuselage with red & gold stripe accent */
.hero {
  background: linear-gradient(
    180deg,
    var(--color-navy-deep) 0%,
    var(--color-navy) 45%,
    var(--color-navy-mid) 100%
  );
  color: var(--color-white);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--color-red);
  box-shadow: inset 0 -3px 0 var(--color-gold);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-navy);
  margin: 0 0 0.5rem;
  border-bottom: 3px solid var(--color-gold);
  padding-bottom: 0.5rem;
}

.page-intro {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 720px;
}

/* Cards & sections */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-red);
  margin: 0 0 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  min-width: 5rem;
  color: var(--color-navy);
}

/* Service areas */
.county-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.county-list li {
  margin-bottom: 0.35rem;
}

.town-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.town-tag {
  background: #E8EEF5;
  border: 1px solid var(--color-navy-mid);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-navy);
}

/* Services list */
.services-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.25rem;
}

.services-list li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E8EEF5;
}

.gallery-caption {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  border-top: 2px solid var(--color-gold);
}

/* Specialty page */
.specialty-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .specialty-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.specialty-text p {
  margin: 0 0 1rem;
}

.feature-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.specialty-gallery {
  grid-column: 1 / -1;
}

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  border-top: 3px solid var(--color-gold);
  border-bottom: 3px solid var(--color-red);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  color: var(--color-white);
}

.cta-banner p {
  margin: 0 0 1rem;
  opacity: 0.95;
}

.cta-banner p a {
  display: inline;
  background: none;
  color: var(--color-gold-light);
  padding: 0;
  border: none;
  font-weight: 600;
  text-decoration: underline;
}

.cta-banner p a:hover {
  background: none;
  color: var(--color-white);
}

.cta-banner > a {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--color-gold);
  margin-top: 0.5rem;
}

.cta-banner > a:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: #C5CED9;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  border-top: 3px solid var(--color-gold);
}

.site-footer a {
  color: var(--color-gold-light);
}

.site-footer strong {
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .site-nav a {
    text-align: center;
  }

  .services-list {
    columns: 1;
  }
}
