/* =========================================
   Bainbridge International – Maintenance Page
   Brand colours:
     Navy   #1a3561
     Red    #c8102e
     Light  #f4f6f9
     Text   #2c2c2c
   ========================================= */

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

:root {
  --navy:   #1a3561;
  --red:    #c8102e;
  --light:  #f4f6f9;
  --white:  #ffffff;
  --text:   #2c2c2c;
  --muted:  #6b7280;
  --border: #dde3ec;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  border-bottom: 3px solid var(--red);
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
  background: var(--white);
  border-radius: 4px;
  padding: 4px 8px;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  background-image: url('https://pbs.twimg.com/profile_banners/292884451/1706881626/1500x500');
  background-size: cover;
  background-position: center 40%;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 53, 97, 0.88) 0%,
    rgba(26, 53, 97, 0.65) 60%,
    rgba(200, 16, 46, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  line-height: 1.5;
}

/* ===== MAIN CARD ===== */
.main-content {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(26, 53, 97, 0.10);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border-top: 4px solid var(--red);
}

.icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
}

.card h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}

.message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* ===== TIMELINE ===== */
.timeline {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
}

.timeline-item.highlight {
  background: rgba(26, 53, 97, 0.05);
}

.timeline-divider {
  height: 1px;
  background: var(--border);
  margin: 0 1.25rem;
}

.timeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.timeline-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.timeline-item.highlight .timeline-value {
  color: var(--red);
  font-size: 1.02rem;
}

/* ===== APOLOGY ===== */
.apology {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ===== CONTACT BLOCK ===== */
.contact-block {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.contact-block > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55em 1.1em;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.contact-link:hover,
.contact-link:focus {
  background: var(--red);
  outline: none;
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 1.25rem 0;
  text-align: center;
  border-top: 3px solid var(--red);
}

.site-footer p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer .address {
  font-size: 0.75rem;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .timeline-value {
    text-align: left;
  }

  .card h2 {
    font-size: 1.3rem;
  }
}
