/* Harborview Realty Partners — refined print-like, flat, editorial */

:root {
  --navy: #1E3A5F;
  --navy-deep: #16293F;
  --gold: #C9A227;
  --ivory: #FBF9F4;
  --ink: #23303E;
  --ink-soft: #4A5866;
  --hairline: rgba(30, 58, 95, 0.22);
  --hairline-light: rgba(251, 249, 244, 0.28);
  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
  --sans: "Raleway", Arial, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 46rem; }

a { color: var(--navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* ---------- Rules ---------- */

.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 1.25rem 0 1.75rem;
}

.hairline-dark { border-top-color: var(--hairline-light); }

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem auto;
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--navy);
  color: var(--ivory);
}

.btn-solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-outline {
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--ivory);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover { background: #B8931F; border-color: #B8931F; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.logo span { color: var(--gold); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:not(.btn):hover { border-bottom-color: var(--gold); }

.nav-cta .btn { padding: 0.55rem 1.3rem; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 0.6rem 0.55rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  display: flex;
  flex-direction: column;
  min-height: 78vh;
  text-align: center;
  color: var(--ivory);
  background:
    linear-gradient(
      rgba(22, 41, 63, 0.78),
      rgba(30, 58, 95, 0.5) 45%,
      rgba(22, 41, 63, 0.72)
    ),
    url("https://images.unsplash.com/photo-1623608103477-2b90432a3f85?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
}

.hero-inner {
  max-width: 52rem;
  margin: auto;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 8.5rem);
}

.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.85);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.hero-subline {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: rgba(251, 249, 244, 0.82);
}

.hero .btn-outline {
  border-color: var(--ivory);
  color: var(--ivory);
}

.hero .btn-outline:hover {
  background: var(--ivory);
  color: var(--navy);
}

.hero-band {
  background: var(--navy);
  color: var(--ivory);
}

.hero-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.4rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-band-inner span[aria-hidden] { color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

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

.about p + p { margin-top: 1.15rem; }

/* ---------- Photography ---------- */

.photo-frame {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 0.6rem;
  margin: 0;
}

.photo-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.photo-credit {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.55rem;
  text-align: right;
}

.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text { max-width: 46rem; }

.about-photo img { aspect-ratio: 4 / 5; }

.photo-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(16rem, 38vw, 26rem);
  object-fit: cover;
}

.photo-band-thin img { height: clamp(10rem, 24vw, 16rem); }

.approach-photo {
  margin-bottom: 2.75rem;
}

.approach-photo img { aspect-ratio: 21 / 8; }

.contact-photo {
  margin-bottom: 1.75rem;
}

.contact-photo img { aspect-ratio: 3 / 2; }

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: 1.75rem 1.6rem 1.9rem;
}

.card-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.card-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.card-icon {
  width: 2rem;
  height: 2rem;
  color: var(--navy);
  opacity: 0.85;
}

.card h3 { margin-bottom: 0.7rem; }

.card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Approach ---------- */

.approach-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.approach-col {
  padding: 0.5rem 2.25rem;
  border-left: 1px solid var(--hairline);
}

.approach-col:first-child {
  border-left: 0;
  padding-left: 0;
}

.approach-col:last-child { padding-right: 0; }

.approach-col h3 { margin-bottom: 0.8rem; }

.approach-num {
  color: var(--gold);
  margin-right: 0.4rem;
}

.approach-col p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 0.7rem 0.85rem;
  border-radius: 0;
}

.field input[type="file"] {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.field-checkbox input {
  margin-top: 0.35rem;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.field-checkbox label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--navy);
  display: none;
}

.form-message.is-visible { display: block; }

.form-message.is-error { color: #8A2B22; }

.contact-info-col h3 { margin-bottom: 0.8rem; }

.contact-info-col h3 + address,
.contact-info-col address { font-style: normal; margin-bottom: 0.9rem; }

.contact-line { margin-bottom: 0.35rem; }

.contact-line a { text-decoration: none; border-bottom: 1px solid var(--gold); }

.contact-info-col h3:nth-of-type(2) { margin-top: 2rem; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
}

.hours-table th { color: var(--navy); font-weight: 600; }

.hours-table td { text-align: right; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.newsletter-pitch {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  max-width: 40rem;
  margin: 0 auto 1.8rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline-light);
  background: var(--navy-deep);
  color: var(--ivory);
  border-radius: 0;
}

.newsletter-form input::placeholder { color: rgba(251, 249, 244, 0.6); }

.newsletter .form-message { color: var(--gold); }

.newsletter .form-message.is-error { color: #E8B7A9; }

.newsletter-microcopy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(251, 249, 244, 0.65);
  letter-spacing: 0.04em;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 249, 244, 0.8);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}

.footer-nav a {
  color: rgba(251, 249, 244, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover { color: var(--gold); }

.footer-legal { margin-top: 2rem; }

.footer-legal p {
  font-size: 0.85rem;
  color: rgba(251, 249, 244, 0.55);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.legal-page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 0.5rem; }

.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.7rem;
}

.legal-page p + p { margin-top: 1rem; }

.legal-page ul {
  margin: 0.6rem 0 0.6rem 1.4rem;
}

.legal-page li { margin-bottom: 0.35rem; }

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

@media (max-width: 56rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; }

  .about-photo { max-width: 34rem; }

  .about-photo img { aspect-ratio: 4 / 3; }

  .approach-photo img { aspect-ratio: 16 / 9; }

  .approach-cols { grid-template-columns: 1fr; }

  .approach-col {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 1.75rem 0;
  }

  .approach-col:first-child { border-top: 0; padding-top: 0.5rem; }
  .approach-col:last-child { padding-bottom: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 44rem) {
  .card-grid { grid-template-columns: 1fr; }

  .hero { min-height: 62vh; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }

  .site-nav ul li { border-top: 1px solid var(--hairline); }

  .site-nav ul li:first-child { border-top: 0; }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta { padding-top: 1rem; border-top: 0 !important; }

  .nav-cta .btn { display: block; text-align: center; }

  .newsletter-form { flex-direction: column; }

  .footer-inner { flex-direction: column; }
}
