/* Siteview Co. website styles */
:root {
  --navy: #082B45;
  --navy-2: #0D3A5C;
  --green: #4F6B2E;
  --green-light: #8DB255;
  --graphite: #30383D;
  --concrete: #B8BEC1;
  --offwhite: #F5F6F4;
  --white: #FFFFFF;
  --text: #30383D;
  --muted: #5E676C;
  --surface: #FFFFFF;
  --surface-2: #F5F6F4;
  --line: #E1E4E2;
  --maxw: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #E6EAEC;
    --muted: #A9B4B9;
    --surface: #0B1B28;
    --surface-2: #10263A;
    --line: #1E3A50;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { text-decoration: none; color: var(--white); display: flex; flex-direction: column; line-height: 1.1; }
.logo .mark { font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.logo .mark span { color: var(--green-light); }
.logo .tag { font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #DCE6EC; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green-light); padding-bottom: 4px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--white); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #435B27; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
@media (prefers-color-scheme: dark) { .btn-outline { color: var(--green-light); border-color: var(--green-light); } }
.nav .btn { padding: 9px 16px; font-size: 14px; color: var(--white); }
.btn:focus-visible, .nav a:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative; color: var(--white);
  background: var(--navy) url("images/hero.jpg") center / cover no-repeat;
  min-height: 600px; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,43,69,0.94) 0%, rgba(8,43,69,0.78) 45%, rgba(8,43,69,0.25) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin: 0 0 18px; max-width: 640px; font-weight: 700; }
.hero p { font-size: 18px; max-width: 560px; margin: 0 0 30px; color: #DCE6EC; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: var(--navy); color: var(--white); padding: 72px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; line-height: 1.15; }
.page-hero p { margin: 0; font-size: 18px; color: #DCE6EC; max-width: 640px; }

/* Credentials strip */
.creds { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 24px; }
.cred { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.cred b { display: block; font-size: 15px; color: var(--text); }
.cred span { color: var(--muted); }
.cred i { flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--green-light); border-radius: 2px; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card .img { aspect-ratio: 16 / 10; background: var(--navy-2); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Service list (services page) */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .img { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-2); }
.service .img img { width: 100%; height: 100%; object-fit: cover; }
.service h2 { font-size: 26px; margin: 0 0 12px; }
.service p { color: var(--muted); margin: 0 0 14px; }
.service ul { margin: 0; padding-left: 20px; }
.service li { margin-bottom: 6px; }
.service.flip .img { order: 2; }

/* Project feature */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature .img { border-radius: 10px; overflow: hidden; background: var(--navy-2); aspect-ratio: 4 / 3; }
.feature .img img { width: 100%; height: 100%; object-fit: cover; }
.label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .label { color: var(--green-light); } }
.feature h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; line-height: 1.2; }
.feature p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 30px; }
.stat { border-left: 3px solid var(--green-light); padding-left: 14px; }
.stat b { display: block; font-size: 26px; line-height: 1.2; color: var(--text); }
.stat span { font-size: 13.5px; color: var(--muted); }
.links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 18px; border-top: 3px solid var(--navy); }
@media (prefers-color-scheme: dark) { .step { border-top-color: var(--green-light); } }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--green); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Gallery (work page) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot { margin: 0; }
.shot .img { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-2); }
.shot .img img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.shot figcaption b { color: var(--text); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.person .photo { width: 160px; height: 160px; border-radius: 10px; overflow: hidden; background: var(--navy-2); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; font-size: 20px; }
.person .role { color: var(--green); font-weight: 600; font-size: 14px; margin: 2px 0 10px; }
@media (prefers-color-scheme: dark) { .person .role { color: var(--green-light); } }
.person p { margin: 0; color: var(--muted); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value h3 { margin: 0 0 6px; font-size: 18px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.cta p { margin: 0; color: #DCE6EC; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--concrete); border-radius: 6px; padding: 11px 12px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-light); outline-offset: 1px; border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.checks input { width: 17px; height: 17px; accent-color: var(--green); }
.hidden { position: absolute; left: -9999px; }
.aside { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.aside h2 { font-size: 20px; margin: 0 0 14px; }
.aside p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.aside a { color: var(--text); font-weight: 600; }

/* Footer */
.site-footer { background: #061F33; color: #B9C6CE; padding: 56px 0 28px; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h3 { color: var(--white); font-size: 14px; margin: 0 0 12px; }
.site-footer a { color: #DCE6EC; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature, .service, .contact, .team { grid-template-columns: 1fr; }
  .service.flip .img { order: 0; }
  .creds .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--green-light); }
  .nav .btn { margin-top: 8px; width: auto; }
  .cards, .values, .steps, .gallery, .row, .checks, .stats { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Founder / homegrown sections */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.founder .photo { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; }
.founder h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; line-height: 1.2; }
.founder p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.founder .sign { color: var(--text); font-weight: 600; }
.story { max-width: 720px; }
.story p { font-size: 17.5px; line-height: 1.75; margin: 0 0 20px; color: var(--text); }
.story .lead { font-size: 22px; font-weight: 600; line-height: 1.5; }
.callout { border-left: 4px solid var(--green-light); background: var(--surface-2); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 28px 0; font-size: 17px; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .founder .photo { max-width: 300px; } }

/* v3 additions */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card .img, .service .img, .shot .img, .feature .img { position: relative; overflow: hidden; }
.card .img img, .service .img img { position: absolute; inset: 0; }
.link-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--green-light); transform: translateY(-2px); }
.link-card:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }
.link-card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--green); }
@media (prefers-color-scheme: dark) { .link-card .more { color: var(--green-light); } }
.img.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--green-light); }
.img.ph svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.img.ph span { color: #DCE6EC; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.img.ph span:empty { display: none; }
.values.grid2 { grid-template-columns: repeat(2, 1fr); }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.label.light { color: var(--green-light); }
.faith { margin: 0 0 28px; padding: 22px 26px; border-left: 4px solid var(--green-light); background: var(--surface-2); font-size: 18px; line-height: 1.6; color: var(--text); }
.faith cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }
.note { margin: 28px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.service ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .cards.four, .values.grid2, .gallery.three { grid-template-columns: 1fr; }
}
