/* ============================================
   PLACID SECURITY — Global Stylesheet
   Color palette extracted from brand assets:
   --navy:   #1a2d5a  (dark navy)
   --teal:   #5bbccc  (lake teal)
   --green:  #1e6b3a  (mountain green)
   --white:  #ffffff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600&display=swap');

:root {
  --navy:        #1a2d5a;
  --navy-dark:   #111e3f;
  --navy-light:  #243a6e;
  --teal:        #5bbccc;
  --teal-light:  #7dd4e0;
  --teal-dark:   #3fa0b0;
  --green:       #1e6b3a;
  --white:       #ffffff;
  --off-white:   #f4f7fa;
  --text-dark:   #111e3f;
  --text-muted:  #5a6a8a;
  --border:      #d0daea;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-height: 72px;
  --section-pad: 80px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(26,45,90,0.12);
  --shadow-lg: 0 12px 48px rgba(26,45,90,0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: var(--teal);
}

.nav-cta {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  width: 100%;
  background: var(--navy-dark);
}

.hero-headline {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 40px 32px;
}

.hero-headline-inner {
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.1s forwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 760px;
  line-height: 1.15;
}

.hero-tagline span {
  color: var(--teal);
}

.hero-sub {
  margin-top: 10px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}

.hero-banner {
  width: 100%;
  max-width: 1280px; /* native width of hero-banner.png; wider upscales and blurs */
  margin: 0 auto;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

/* ---- PAGE HEADER (non-home pages) ---- */
.page-header {
  background: var(--navy);
  padding: 56px 32px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.page-header .header-rule {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 16px auto 0;
  border: none;
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad) 32px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.section-title-rule {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border: none;
  margin: 16px 0 24px;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
  max-width: 680px;
}

.section-body p + p { margin-top: 1em; }

/* Alternating bg */
.section--alt { background: var(--off-white); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy .section-title { color: var(--white); }
.section--navy .section-label { color: var(--teal-light); }
.section--navy .section-body { color: rgba(255,255,255,0.85); }

/* ---- TRUST BAR (Home) ---- */
.trust-bar {
  background: var(--navy-dark);
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

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

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.10s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.20s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.30s; }
.service-card:nth-child(7) { animation-delay: 0.35s; }

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- ABOUT SPLIT ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-display {
  width: 280px;
  filter: drop-shadow(0 8px 32px rgba(26,45,90,0.2));
}

.creds-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cred-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 2px;
}

.cred-tag--teal {
  background: var(--teal);
  color: var(--navy);
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(91,188,204,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  margin: 16px auto 32px;
  max-width: 540px;
  font-size: 1.05rem;
  position: relative;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,188,204,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---- CONTACT FORM ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-detail a {
  color: var(--teal-dark);
  transition: color 0.2s;
}
.contact-detail a:hover { color: var(--navy); }

.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(91,188,204,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #e8f7f0;
  border: 1.5px solid #2ecc71;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #1a6b3c;
  font-weight: 500;
  margin-top: 16px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  padding: 48px 32px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-nav h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.footer-contact p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-overlay { padding: 24px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
