/* Secure Village PH — shared site styles */

:root {
  --navy: #153B4F;
  --navy-dark: #0F2C3B;
  --family: #B5652E;
  --visitor: #6E4E9E;
  --delivery: #2E86AB;
  --guard-slate: #3A4750;
  --entry: #1F9D6B;
  --exit: #D99A2B;
  --danger: #D14343;
  --background: #F5F3EE;
  --surface: #FFFFFF;
  --hairline: #E4E1D9;
  --text-primary: #1B2530;
  --text-secondary: #6B7280;
  --text-muted: #9A9C9F;
  --radius-card: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 6px rgba(21, 59, 79, 0.06);
  --shadow-lift: 0 20px 44px rgba(21, 59, 79, 0.16);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.2px;
  color: var(--navy);
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 26px rgba(21, 59, 79, 0.25);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(21, 59, 79, 0.32); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--hairline);
}

.btn-ghost:hover { border-color: var(--navy); }

.btn-light {
  background: white;
  color: var(--navy);
}

.btn-light:hover { transform: translateY(-1px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 11px; }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 59, 79, 0.08);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: var(--navy-dark);
}

.hero h1 .accent { color: var(--family); }

.hero p.lead {
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust .stat b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
}

.hero-trust .stat span {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,59,79,0.10) 0%, rgba(21,59,79,0) 70%);
  z-index: 0;
}

/* ---------- Section shell ---------- */

section { padding: 78px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin: 0;
}

.section-alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- Vision & mission ---------- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vm-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.vm-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 18px;
}

.vm-card.vision .icon { background: var(--navy); }
.vm-card.mission .icon { background: var(--guard-slate); }

.vm-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; color: var(--navy-dark); }
.vm-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------- Two-app cards ---------- */

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.app-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 18px;
}

.app-card.client .icon { background: var(--navy); }
.app-card.admin .icon { background: var(--guard-slate); }

.app-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; color: var(--navy-dark); }
.app-card p.tag { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 20px; }

.app-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.app-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.app-card li .dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
}

.app-card.client li .dot { background: var(--navy); }
.app-card.admin li .dot { background: var(--guard-slate); }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}

.feature h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--navy-dark); }
.feature p { font-size: 13.3px; color: var(--text-secondary); margin: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }

.step .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--navy-dark); }
.step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* ---------- Screenshot showcase ---------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.shot-card .shot-img { display: block; }

.shot-card .shot-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.shot-card .shot-label {
  padding: 16px 20px 20px;
  text-align: center;
}

.shot-card .shot-label b { display: block; font-size: 14px; color: var(--navy-dark); margin-bottom: 3px; }
.shot-card .shot-label span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.price-card.featured {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.price-card .badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(31, 157, 107, 0.14);
  color: var(--entry);
  margin-bottom: 16px;
}

.price-card.featured .badge { background: rgba(255,255,255,0.16); color: white; }

.price-card h3 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.price-card .sub { font-size: 13.5px; opacity: 0.75; margin: 0 0 22px; }

.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.price-card li:before { content: "\2713"; font-weight: 800; color: var(--entry); }
.price-card.featured li:before { color: #7FE3B4; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 14px; }
.cta-band p { color: rgba(255,255,255,0.78); font-size: 15px; margin: 0 0 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand { max-width: 280px; }
.footer-brand .brand { color: white; margin-bottom: 10px; }
.footer-brand .brand .mark { background: white; color: var(--navy); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 13px; }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h5 { font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 12.5px;
}

/* ---------- Download page ---------- */

.page-header {
  padding: 56px 0 20px;
  text-align: center;
}

.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy-dark); margin: 0 0 14px; letter-spacing: -0.4px; }
.page-header p { color: var(--text-secondary); font-size: 15.5px; max-width: 560px; margin: 0 auto; }

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.download-grid.single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.download-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 18px;
}

.download-card.client .icon { background: var(--navy); }
.download-card.admin .icon { background: var(--guard-slate); }

.download-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--navy-dark); }
.download-card p.tag { color: var(--text-secondary); font-size: 14px; margin: 0 0 22px; flex: 1; }

.download-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  font-weight: 600;
}

.notice {
  display: flex;
  gap: 12px;
  background: rgba(217, 154, 43, 0.1);
  border: 1px solid rgba(217, 154, 43, 0.35);
  color: #8a5c14;
  padding: 16px 18px;
  border-radius: 13px;
  font-size: 13.5px;
  margin-bottom: 48px;
}

.info-note {
  display: flex;
  gap: 12px;
  background: rgba(21, 59, 79, 0.06);
  border: 1px solid rgba(21, 59, 79, 0.16);
  color: var(--navy-dark);
  padding: 16px 18px;
  border-radius: 13px;
  font-size: 13.5px;
  margin: -4px auto 20px;
  max-width: 420px;
}

.install-steps {
  counter-reset: inst;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.install-step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.install-step:last-child { border-bottom: none; }

.install-step .num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 59, 79, 0.08);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-step h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 5px; color: var(--navy-dark); }
.install-step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

.ios-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 14px 24px 20px;
    box-shadow: 0 12px 24px rgba(21,59,79,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
  .app-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 24px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature { padding: 18px 14px; }
  .steps { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .hero-actions, .cta-band .hero-actions { flex-direction: column; }
  .hero-trust { gap: 20px; }
}

@media (max-width: 420px) {
  .feature-grid { grid-template-columns: 1fr; }
}
