/* Diamond Realty Partners — static site. No build step, no scripts. */
:root {
  --brand: #0480c6;
  --brand-dark: #03639a;
  --brand-tint: #e8f4fb;
  --band: #3a6f9e;
  --ink: #17212b;
  --body: #47525e;
  --line: #e3e8ee;
  --surface: #f6f8fa;
  --white: #fff;
  --radius: 10px;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.surface { background: var(--surface); }
.center { text-align: center; }
.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: 1.1rem; max-width: 46rem; }
.center .lead { margin-left: auto; margin-right: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--white); font-weight: 700; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); transform: translateY(-1px); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--brand); }
.btn.light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; max-width: 1280px; }
.logo { flex: none; }
.logo img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 9px 10px; border-radius: 6px; white-space: nowrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.nav a.cta { background: var(--brand); color: var(--white); margin-left: 6px; }
.nav a.cta:hover { background: var(--brand-dark); color: var(--white); }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
@media (max-width: 1180px) {
  .nav.desktop { display: none; }
  .menu { display: block; position: relative; }
  .menu .nav {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(23, 33, 43, .16);
  }
  .menu .nav a.cta { margin: 6px 0 0; text-align: center; }
  .logo img { height: 60px; }
  .site-header .wrap { min-height: 72px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: #0b2a40 center / cover no-repeat; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 24, 38, .62), rgba(6, 24, 38, .28)); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p { color: rgba(255, 255, 255, .95); }
.hero.home { min-height: min(92vh, 900px); display: flex; align-items: center; }
.hero.home .wrap { padding-top: 150px; padding-bottom: 110px; max-width: 1280px; }
.hero.home h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero.home p { font-size: clamp(1.1rem, 1.9vw, 1.55rem); line-height: 1.35; max-width: 37rem; margin: 0 0 30px; }
.page-hero::before { background: linear-gradient(180deg, rgba(6, 24, 38, .58), rgba(6, 24, 38, .72)); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 76px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
@media (max-width: 640px) { .hero.home { min-height: 78vh; } .hero.home .wrap { padding-top: 120px; padding-bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }

/* Home: header sits on top of the hero, as on the original site */
body.home .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; }
body.home .site-header .nav.desktop a { color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
body.home .site-header .nav.desktop a:hover, body.home .site-header .nav.desktop a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: var(--white); }
body.home .site-header .nav.desktop a.cta { background: var(--brand); text-shadow: none; }
body.home .site-header .nav.desktop a.cta:hover { background: var(--brand-dark); }
body.home .menu summary { background: rgba(255, 255, 255, .92); }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid.c4, .grid.c2 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { display: block; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23, 33, 43, .12); color: inherit; }
.card img.cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .pad { padding: 20px 22px 22px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.feature { padding: 30px 26px; text-align: center; }
.feature img { width: 64px; height: 64px; margin: 0 auto 16px; }

/* Brand band */
.band { background: var(--band); color: var(--white); font-weight: 600; }
.band h2, .band h3 { color: var(--white); }
.band .eyebrow { color: rgba(255, 255, 255, .8); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%233a6f9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat img { width: 44px; height: 44px; margin: 0 auto 8px; }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.stat span { font-size: .85rem; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 16px 34px rgba(23, 33, 43, .08); }
.form-card h3 { font-size: 1.35rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; border: 1px solid #cfd7df; border-radius: 6px; background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(4, 128, 198, .18); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; margin: 12px 0 0; }

/* Testimonials */
.photo-band { position: relative; background: #1b2530 center / cover no-repeat; color: var(--white); }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(12, 20, 28, .45); }
.photo-band .wrap { position: relative; }
.photo-band h2 { color: var(--white); }
.photo-band .card { color: var(--body); }
.photo-band .eyebrow { color: #9fd6f5; }
@media (min-width: 961px) { .photo-band { background-attachment: fixed; } }
.quote { padding: 26px; display: flex; flex-direction: column; }
.quote p { font-style: italic; flex: 1; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); }
.quote cite::before { content: "— "; color: var(--brand); }

/* Articles */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.meta { font-size: .85rem; color: #6b7785; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Page pieces */
.split.top { align-items: start; }
@media (min-width: 961px) { .split.flip > :first-child { order: 2; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.facts li { background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: .85rem; padding: 6px 13px; border-radius: 999px; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.prose.center { text-align: center; }
.prose.center ul, .prose.center ol { list-style: none; padding-left: 0; }
.form-card h2 { font-size: 1.5rem; }

/* Footer */
.site-footer { background: #f3f3f3 url("/assets/img/construction.jpg") center bottom / cover no-repeat; color: var(--body); padding: 60px 0 0; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr; gap: 36px; }
.site-footer h4 { color: var(--ink); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #cfd4da; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--brand); }
.site-footer .flogo { display: inline-block; margin-bottom: 12px; }
.site-footer .flogo img { height: 110px; width: auto; }
.site-footer .legal { margin-top: 44px; padding: 18px 0; border-top: 1px solid #dbdbdb; font-size: .85rem; text-align: center; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

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