/* Quadera Property Management — site styles */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }

:root {
  --brand: #176889;
  --brand-dark: #10506a;
  --ink: #1e2a31;
  --muted: #56636b;
  --hint: #8a979e;
  --line: #c7d5db;
  --tint: #eef4f7;
  --bg: #ffffff;
  --error: #b42318;
  --radius: 10px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow > * { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header (inner pages) */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; flex-wrap: wrap; padding-block: clamp(1.25rem, 3vw, 2rem); }
.brand { flex: none; }
.brand img { width: 230px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.25rem, 3vw, 2.25rem); }
.nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav a { color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Home: the business card, as a page */
body.home { background: var(--brand); color: #fff; }
body.home :focus-visible { outline-color: #fff; }
body.home main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4rem, 13vh, 8rem); padding-block: clamp(4rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem); }
.lockup { width: min(500px, 76vw); margin: 0; }
.lockup img { width: 100%; height: auto; }
.cards { display: grid; gap: clamp(.875rem, 1.6vw, 1.25rem); grid-template-columns: 1fr; max-width: 980px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: .4rem; padding: clamp(1.4rem, 2.4vw, 1.85rem);
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px; color: #fff; text-decoration: none;
  transition: background-color .25s, border-color .25s;
}
.card strong { font-weight: 500; font-size: 1.1rem; }
.card span { flex: 1; font-size: .92rem; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .88); margin-bottom: 1.1rem; }
.card em { font-style: normal; font-weight: 500; font-size: .9rem; }
.card i { display: inline-block; font-style: normal; transition: transform .25s; }
.card:hover { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .6); }
.card:hover i { transform: translateX(4px); }
body.home .site-footer { margin-top: 0; border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
body.home .site-footer a:hover { color: #fff; }

/* Page heads */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 38rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 500; font-size: .95rem; line-height: 1; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff; text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--tint); color: var(--brand-dark); }
.btn.small { padding: .6rem 1rem; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.notice { border-left: 3px solid var(--brand); background: var(--tint); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2.5rem; font-size: .95rem; }
.notice p:last-child { margin: 0; }

/* Forms */
form { display: grid; gap: 2.25rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
legend { font-size: 1.15rem; font-weight: 500; color: var(--brand); padding: 0 0 .6rem; margin-bottom: .4rem; border-bottom: 1.5px solid var(--brand); width: 100%; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span, .group-label { font-size: .875rem; color: var(--muted); }
.field small, .hint { font-size: .78rem; color: var(--hint); font-weight: 300; }
.req::after { content: " *"; color: var(--brand); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[type="file"] { padding: .55rem; background: var(--tint); border-style: dashed; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.choices label, .check { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; cursor: pointer; }
.choices input, .check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--brand); flex: none; }
.check { align-items: flex-start; }
.check input { margin-top: .25rem; }
.row-occupant { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr 11rem; align-items: end; }
@media (max-width: 600px) { .row-occupant { grid-template-columns: 1fr 1fr; } .row-occupant .field:last-child { grid-column: 1 / -1; } }
.applicant { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); display: grid; gap: 1.25rem; }
.applicant h3 { color: var(--brand); margin: 0; }
.applicant h4 { margin: .5rem 0 0; font-weight: 500; font-size: .95rem; }
.legal { font-size: .9rem; color: var(--muted); background: var(--tint); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.legal p:last-child { margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; padding: 1rem 1.25rem; border-radius: var(--radius); }
.form-status:empty { display: none; }
.form-status.error { background: #fef3f2; color: var(--error); border: 1px solid #fecdca; }
.form-status.ok { background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.topic { max-width: 20rem; }
.maint { gap: 1rem; }
.maint .notice { margin: .25rem 0 .25rem; }

/* Contact details */
.contact-list { display: grid; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.contact-list strong { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.two-col { display: grid; gap: clamp(2.5rem, 7vw, 5rem); grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Footer (inner pages) */
.site-footer { margin-top: clamp(4rem, 10vw, 7rem); border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: .78rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--brand); }

/* Phones and tablets: comfortable touch targets (44px where it matters) */
@media (pointer: coarse) {
  .brand { display: block; padding-block: .6rem; }
  .nav a { padding-block: .85rem; }
  .contact-list a, .site-footer a { display: inline-block; padding-block: .55rem; }
  .choices label, .check { min-height: 2.6rem; }
  .choices { row-gap: 0; }
  details > summary { padding-block: .6rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header nav, .site-footer, .btn { display: none; } }
[hidden] { display: none !important; }
details { border-top: 1px dashed var(--line); padding-top: .75rem; }
details > summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 500; margin-bottom: .25rem; }
details[open] > summary { margin-bottom: 1rem; }
details > .grid + .grid { margin-top: 1rem; }

a[href^="tel:"] { white-space: nowrap; }
