/* Ace Plus Property Management — shared stylesheet */

:root {
  --navy: #1b3a5b;
  --navy-dark: #142c45;
  --accent: #c07a2d;      /* warm, understated */
  --accent-dark: #a5641f;
  --ink: #23282d;
  --muted: #5c6672;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-navy-soft: #eef2f6;
  --success: #2e6b4f;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(20, 44, 69, 0.08);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__intro p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }

/* ---- Top utility bar ---- */
.topbar {
  background: var(--navy-dark);
  color: #cdd8e2;
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .topbar__emergency { color: #f2a58e; font-weight: 700; white-space: nowrap; }
.topbar .topbar__emergency::before { content: "\26A0"; margin-right: 6px; }
.topbar .topbar__emergency:hover { color: #fff; }

/* ---- Header / nav ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand__name::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  vertical-align: -6px;
  background: url("../images/logo.svg") no-repeat center / contain;
}
.brand__name span { color: var(--accent); }
.brand__tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav a:hover { background: var(--bg-navy-soft); color: var(--navy); }
.nav a.is-active { color: var(--accent-dark); }
.nav .btn { margin-left: 8px; padding: 9px 16px; }

/* ---- Hero ---- */
.hero {
  background:
    url("../images/hero.svg") bottom center / 100% auto no-repeat,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #eaf0f6;
}
.hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 16ch; }
.hero p { font-size: 1.18rem; color: #cfdae5; max-width: 52ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__sub { margin-top: 1.5rem; font-size: 0.95rem; color: #a9bccd; }

/* ---- Page header (interior pages) ---- */
.page-head {
  background: var(--bg-navy-soft);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.page-head h1 { margin-bottom: 0.25rem; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--bg-navy-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}

/* ---- Feature rows ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split ul { padding-left: 0; list-style: none; margin: 1rem 0 0; }
.split li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--success); font-weight: 700;
}
.media-box {
  background: var(--bg-navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; padding: 24px;
}

/* ---- CTA band ---- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdae5; max-width: 56ch; margin: 0 auto 1.5rem; }
.cta-band .btn--primary { background: var(--accent); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Rentals ---- */
.listings { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.listing {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.listing__photo {
  aspect-ratio: 4 / 3; background: var(--bg-navy-soft);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  overflow: hidden;
}
.listing__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.listing__price { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.listing__addr { color: var(--muted); font-size: 0.95rem; margin: 2px 0 10px; }
.listing__meta { display: flex; gap: 16px; font-size: 0.9rem; color: var(--ink); margin-bottom: 14px; }
.listing__meta span { font-weight: 600; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  background: #e7f0ea; color: var(--success);
}

.empty-state {
  text-align: center; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; background: var(--bg-soft); color: var(--muted);
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--accent-dark); }

form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.95rem; }
form input, form select, form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: #fff;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,91,0.1);
}
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: 0.95rem; }
.form-status--success { background: #e7f0ea; color: var(--success); border: 1px solid #bfe0cc; }
.form-status--error { background: #fbf1ee; color: #b5462f; border: 1px solid #edcfc6; }

/* ---- FAQ ---- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 18px; margin-bottom: 12px; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; }
.faq p { color: var(--muted); margin: 0 0 12px; }

/* ---- Emergency callout ---- */
#emergency { scroll-margin-top: 90px; }
.callout--emergency {
  max-width: 760px;
  margin: 0 auto;
  background: #fbf1ee;
  border: 1px solid #edcfc6;
  border-left: 5px solid #b5462f;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.callout--emergency .eyebrow { color: #b5462f; }
.callout--emergency h2 { margin-top: 0; }
.callout--emergency p { color: var(--ink); }
.callout__phone { font-size: 1.5rem; font-weight: 800; margin: 8px 0 14px; }
.callout__phone a { color: var(--navy); text-decoration: none; }
.callout__phone a:hover { color: var(--accent-dark); }
.callout__fine { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dark); color: #b9c6d3; padding: 48px 0 24px; font-size: 0.95rem; }
.site-footer a { color: #dfe7ee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer__brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer__brand-name span { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8ea1b3;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid--3, .listings { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  .grid--3, .grid--2, .listings, .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 20px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--bg-soft); }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .site-header { position: static; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}
