/* Sunlight Property Solutions, LLC — self-hosted copy of the former Wix site */
:root {
  --navy: #16132c;
  --navy-btn: #0f2350;
  --blue: #008afc;
  --lavender: #b6b1dd;
  --light: #fafafa;
  --panel: #f4f4f4;
  --text: #16132c;
  --muted: #555;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header .wrap { position: relative; padding-top: 12px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand span { font-weight: 600; font-size: 15px; margin-top: -4px; }
.header-rule { border: 0; border-top: 1px solid #333; margin: 14px 0 0; }
.nav-row { display: flex; justify-content: center; align-items: center; position: relative; padding: 10px 0; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 13px; font-weight: 400; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.btn-portal {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--navy-btn); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; padding: 8px 22px;
}
.btn-portal:hover { background: var(--blue); }

/* Hero */
.hero { text-align: center; padding: 70px 20px 60px; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.12; margin: 0 0 14px; }
.hero p { margin: 0; font-size: 18px; }

/* Services */
.services-title { background: var(--light); text-align: center; padding: 30px 20px; border-top: 1px solid #eee; }
.services-title h2 { font-weight: 600; font-size: clamp(32px, 4vw, 50px); margin: 0; }
.services {
  background: #dfe9ef url("../images/services-bg.jpg") center / cover no-repeat;
  padding: 60px 20px 70px;
}
.services .grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { background: #fff; padding: 0 30px 34px; text-align: center; position: relative; margin-top: 30px; display: flex; flex-direction: column; }
.card .num {
  width: 64px; height: 72px; margin: -30px auto 18px; background: var(--blue); color: var(--navy);
  font-size: 30px; font-weight: 500; display: flex; align-items: center; justify-content: center;
  border-radius: 18px 18px 0 18px;
}
.card h3 { font-weight: 600; font-size: 16px; line-height: 1.45; margin: 0 0 18px; }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.card h4 { font-weight: 400; font-size: 14px; margin: 6px 0 6px; }
.card ul { text-align: left; font-size: 12.5px; color: var(--muted); margin: 0 0 22px; padding-left: 18px; }
.card .btn { margin-top: auto; align-self: center; }
.btn { display: inline-block; background: var(--navy-btn); color: #fff; text-decoration: none; font-size: 12px; font-weight: 500; padding: 9px 34px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); padding: 8px 18px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Gallery */
.gallery { padding: 70px 0 0; }
.gallery .track {
  display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, 230px);
  grid-auto-columns: minmax(240px, 25%); gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery .tile { position: relative; overflow: hidden; background: var(--lavender); scroll-snap-align: start; }
.gallery .tile.tall { grid-row: span 2; }
.gallery .tile img, .gallery .tile video { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; max-width: 100%; padding: 8px 12px 0; }
.gallery-controls button { background: var(--navy); color: #fff; border: 0; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }

/* Contact block */
.contact { padding: 60px 20px 40px; }
.contact .grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; }
.contact h2 { font-weight: 600; font-size: 36px; margin: 0 0 18px; }
.contact address { font-style: normal; font-size: 13px; }
.contact address a { text-decoration: none; }
form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.field { display: flex; flex-direction: column; grid-column: 1 / -1; }
.field.half { grid-column: auto; }
.field label { font-size: 12px; margin-bottom: 3px; }
.field input, .field textarea {
  font-family: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid #888; border-radius: 0; color: var(--text); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.field textarea { min-height: 120px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px; display: none; }
.form-msg.ok { display: block; background: #e8f5ee; border-left: 4px solid #1f8a4c; }
.form-msg.err { display: block; background: #fdecec; border-left: 4px solid #c0392b; }

/* About */
.about { padding: 60px 20px 80px; }
.about .grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; align-items: start; }
.about .panel { background: var(--panel); padding: 50px 50px 60px; margin-top: 70px; position: relative; z-index: 1; margin-right: -60px; }
.about .panel h1 { font-weight: 600; font-size: 40px; line-height: 1.25; margin: 0 0 18px; }
.about .panel p { font-size: 13px; margin: 0 0 18px; }
.about .photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }

/* Hours */
.hours { padding: 30px 20px 70px; }
.hours .grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.hours .photo img { width: 100%; height: 300px; object-fit: cover; }
.hours .panel { background: var(--panel); padding: 40px 50px; margin-left: -40px; }
.hours h3 { font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.hours p { margin: 0 0 8px; font-size: 14px; }

/* Footer */
.site-footer { text-align: center; font-size: 12px; padding: 40px 20px 50px; }
.site-footer p { margin: 6px 0; }

@media (max-width: 820px) {
  .services .grid, .contact .grid, .about .grid, .hours .grid { grid-template-columns: 1fr; }
  .card { margin-top: 44px; }
  .about .panel { margin: 0; padding: 36px 26px; }
  .about .photo img { min-height: 320px; }
  .hours .panel { margin: 0; }
  .nav-row { flex-direction: column; gap: 10px; }
  .btn-portal { position: static; transform: none; }
  .gallery .track { grid-auto-columns: 70%; }
}
@media (max-width: 480px) {
  form.contact-form { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
}
