/* Ifugao Provincial Health Office landing page — blue palette
   Add pho-logo.png and screenshot.png beside index.html before previewing. */

:root {
  --navy: #172554;
  --blue-dark: #173b75;
  --blue: #1877f2;
  --blue-hover: #0d66d0;
  --blue-soft: #edf4ff;
  --blue-pale: #f5f8ff;
  --white: #ffffff;
  --ink: #202b45;
  --muted: #606979;
  --line: #dce5ef;
  --radius: 20px;
  --shadow: 0 12px 35px rgba(23, 59, 117, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 10;
  padding: 10px 14px; background: var(--white); color: var(--navy);
  border: 2px solid var(--blue); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; padding-block: 16px; }
.logo-container {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 70px; width: 70px; height: 70px; text-decoration: none;
}
.pho-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand h1 { margin: 0; color: var(--navy); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.25; }
.eyebrow {
  margin: 0 0 6px; color: var(--blue-dark); font-size: 0.76rem;
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.brand .eyebrow { margin-bottom: 3px; }
.brand-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(ellipse at 90% 10%, rgba(255,255,255,.13), transparent 35%),
              linear-gradient(130deg, #172554, #2455a0);
}
.hero::after {
  content: ""; position: absolute; right: -100px; bottom: -220px; width: 430px; height: 430px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.025);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 64px); max-width: 900px; text-align: center; }
.hero-eyebrow { color: #d4e4ff; }
.hero h2 {
  max-width: 820px; margin: 0 auto 20px; font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 750; letter-spacing: -0.04em; line-height: 1.12;
}
.hero-copy { max-width: 690px; margin: 0 auto 26px; color: #e8efff; font-size: clamp(1rem, 1.7vw, 1.13rem); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border: 2px solid transparent; border-radius: 10px;
  font-size: .98rem; font-weight: 750; text-align: center; text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .contact-link:focus-visible { outline: 3px solid #f4c96b; outline-offset: 4px; }
.button-primary { background: var(--white); color: var(--navy); }
.button-primary:hover { background: #edf4ff; }
.facebook-icon { width: 23px; height: 23px; }
.button-note { margin: 12px 0 0; color: #d9e6ff; font-size: .86rem; }

.section { padding-block: clamp(46px, 7vw, 76px); }
.about { text-align: center; }
.section-eyebrow { margin-bottom: 8px; }
.section h2 { margin: 0 0 15px; color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.2; }
.section p { color: var(--muted); }
.about p:not(.eyebrow), .contact p:not(.eyebrow) { font-size: 1.03rem; }

/* Updates section: concise message on the left; static Facebook screenshot card on the right. */
.updates { padding-top: 0; background: var(--white); }
.updates-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  align-items: center; gap: clamp(28px, 5vw, 56px);
  padding: clamp(24px, 4vw, 44px); background: var(--blue-pale);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.updates-copy h2 { margin-bottom: 12px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.updates-copy > p:not(.eyebrow) { margin: 0; }
.facebook-card {
  min-width: 0; width: 100%; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(23, 59, 117, 0.07);
}
.facebook-screenshot-link { display: block; background: #e8eef8; overflow: hidden; }
.facebook-screenshot { display: block; width: 100%; height: 270px; object-fit: cover; object-position: center; }
.screenshot-caption { padding: 18px; }
.page-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-logo { flex: 0 0 54px; width: 54px; height: 54px; object-fit: contain; }
.page-identity h3 { margin: 0; color: var(--navy); font-size: 1rem; line-height: 1.35; }
.page-identity p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.button-facebook { width: 100%; background: var(--blue); color: var(--white); }
.button-facebook:hover { background: var(--blue-hover); }

.contact { background: var(--blue-soft); text-align: center; }
.contact-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid #d1def1; border-radius: 12px; background: rgba(255,255,255,.85);
  color: var(--navy); font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.contact-link:hover { background: white; border-color: var(--blue); }
.contact-symbol { color: var(--blue-dark); font-size: 1.1rem; }
.facebook-letter { color: var(--blue); font-size: 1.35rem; font-weight: 800; }

.site-footer { background: #142b52; color: #e5edfc; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.footer-inner p { margin: 0; font-size: .86rem; }
.footer-note { color: #bdcde9; }

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 32px, 1120px); }
  .header-inner { gap: 12px; padding-block: 14px; }
  .logo-container { flex-basis: 54px; width: 54px; height: 54px; }
  .hero-content { padding-block: 42px; }
  .hero h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .button-primary { width: 100%; max-width: 360px; }
  .updates-panel { grid-template-columns: 1fr; gap: 24px; }
  .facebook-screenshot { height: 240px; }
  .button-facebook { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
  .updates-panel { padding: 20px; }
  .facebook-screenshot { height: 190px; }
  .contact-links { align-items: stretch; flex-direction: column; }
  .contact-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
