/* Peaceline Security — static site styles */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --color-primary: #0c1929;
  --color-primary-light: #1e3a5f;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-soft: #fef3c7;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --header-top-h: 36px;
  --header-h: 64px;
  --header-total: calc(var(--header-top-h) + var(--header-h));
  --max-w: 1120px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-total);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 25, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top {
  background: #060d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--header-top-h);
}

.header-main {
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #fff;
}

.logo:hover {
  color: #fff;
  opacity: 0.9;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  /* Official logo PNG has a black background */
  mix-blend-mode: lighten;
}

.logo-img-footer {
  height: 48px;
  margin-bottom: 0.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 25, 41, 0.94) 0%, rgba(12, 25, 41, 0.72) 45%, rgba(12, 25, 41, 0.35) 100%),
    radial-gradient(ellipse 80% 60% at 70% 100%, rgba(217, 119, 6, 0.12), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--color-accent-soft);
  border-color: rgba(254, 243, 199, 0.3);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-soft);
  border-radius: 999px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2,
.split-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-header p,
.split-content p {
  color: var(--color-text-muted);
  margin: 0;
}

.highlight {
  font-weight: 600;
  color: var(--color-text) !important;
  margin-top: 1rem !important;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Official section imagery */
.section-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.section-media:not(.team-videos) {
  max-width: 260px;
}

.section-media:not(.team-videos) img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

/* Portrait videos & event photos — keep compact */
.video-portrait,
.section-media video,
.team-video video,
.event-media video,
.event-media img {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 260px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.section-media-caption {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.team-photo {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1024 / 400;
  object-fit: cover;
}

.team-photo figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.team-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  margin-bottom: 0;
}

.team-details .highlight {
  margin: 0;
}

.team-videos[hidden] {
  display: none !important;
}

.team-videos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  margin-inline: auto;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.team-videos .team-video:first-child {
  grid-column: auto;
  justify-self: stretch;
  max-width: none;
  width: auto;
}

.team-video {
  margin: 0;
}

.team-video figcaption {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.split > .section-media,
.split > .team-videos {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
}

.split > .split-content {
  grid-column: 2;
  grid-row: 1;
}

.split > .check-list {
  grid-column: 2;
  grid-row: 2;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 50%;
}

.check-list-accent li::before {
  background: var(--color-primary);
  color: #fff;
}

/* Events gallery */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-media {
  position: relative;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

/* Crop from the top so the frame aligns with the club video beside it */
.event-media-photo img {
  object-position: center bottom;
}

.event-caption {
  padding: 1rem 1.25rem;
}

.event-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.event-caption p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.events-note {
  text-align: center;
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.events-note a {
  font-weight: 600;
}

/* Testimonials */
#testimonials[hidden] {
  display: none !important;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  margin: 0;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  flex: 1;
}

.testimonial-quote::before {
  content: none;
}

.testimonial-author {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.testimonial-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.testimonials-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

/* Contact */
.section-contact {
  background: var(--color-primary);
  color: #fff;
}

.section-contact .eyebrow {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

.section-contact h2,
.section-contact .section-header p {
  color: #fff;
}

.section-contact .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), border-color var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.contact-card-phone .contact-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.contact-card-static {
  cursor: default;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.contact-value {
  display: block;
  font-weight: 600;
  word-break: break-word;
}

.contact-hint {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 1rem 0 0;
}

.contact-form .btn-primary {
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: #060d14;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Legal pages */
.page-legal {
  padding: 3rem 0 5rem;
}

.page-legal .container {
  max-width: 720px;
}

.page-legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.page-legal .meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.page-legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.page-legal p,
.page-legal li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.page-legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.page-legal li {
  margin-bottom: 0.375rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.back-link:hover {
  color: var(--color-accent-hover);
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split > .section-media,
  .split > .team-videos,
  .split > .split-content,
  .split > .check-list {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .team-details {
    grid-template-columns: 1fr;
  }

  .team-videos {
    grid-template-columns: 1fr;
    max-width: 200px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-total);
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    background: var(--color-primary);
    transform: translate3d(100vw, 0, 0);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin: 1rem 0 0;
    text-align: center;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
