:root {
  --navy: #0b2e4f;
  --navy-dark: #07203a;
  --orange: #e8762c;
  --orange-dark: #c95f1a;
  --grey: #f4f6f8;
  --text: #29333d;
  --border: #dfe5ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #fff;
}

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

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -70px;
}

.brand img { height: 56px; width: auto; }

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text span { display: block; font-weight: 400; font-size: 0.75rem; color: var(--orange-dark); letter-spacing: 0.04em; }

nav.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.header-call {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.header-call a { color: var(--orange-dark); }

/* Hero */
.hero {
  background: linear-gradient(rgba(11,46,79,0.78), rgba(11,46,79,0.78)), url("../images/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  max-width: 850px;
  margin: 0 auto 18px;
  line-height: 1.3;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #e7eef5;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 8px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--orange-dark); text-decoration: none; }
.btn.secondary { background: transparent; border: 2px solid #fff; }
.btn.secondary:hover { background: rgba(255,255,255,0.15); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--grey); }

h2.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: #5a6776;
  max-width: 700px;
  margin: 0 auto 36px;
}

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

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px; }

.card-photo-montage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.card-photo-montage a { display: block; }
.card-photo-montage img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: opacity 0.2s ease;
}
.card-photo-montage a:hover img { opacity: 0.85; }

.card-body h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.05rem; }
.card-body p { margin: 0; font-size: 0.92rem; color: #555; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 56px;
  margin-bottom: 56px;
  scroll-margin-top: 100px;
  border-bottom: 1px solid var(--border);
}
.service-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.service-block.reverse .service-text { order: 2; }
.service-block .service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-block img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; }
.service-block h3 { color: var(--navy); font-size: 1.4rem; margin-top: 0; }
@media (max-width: 800px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-text { order: 0; }
}

.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.service-index a {
  background: var(--grey);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}
.service-index a:hover { background: var(--navy); color: #fff; text-decoration: none; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 10px;
}
.icon-row img { margin: 0 auto 12px; height: 60px; width: 60px; object-fit: contain; }
.icon-row h4 { color: var(--navy); margin: 0 0 6px; }
.icon-row p { font-size: 0.9rem; color: #5a6776; margin: 0; }
@media (max-width: 700px) { .icon-row { grid-template-columns: 1fr; } }

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 10px;
}
.brand-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.brand-strip-item img {
  height: 104px;
  width: auto;
  object-fit: contain;
}
.brand-badge {
  height: 64px;
  min-width: 120px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-strip-item span.brand-label {
  font-size: 0.78rem;
  color: #5a6776;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Listings (for sale pages) */
.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 30px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.filter-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--navy);
}
.filter-group select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
@media (max-width: 700px) {
  .listing-filters { flex-direction: column; }
  .filter-group { min-width: 0; }
}

.listing {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 50px;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.back-to-top {
  text-align: right;
  margin: -30px 0 30px;
}
.back-to-top a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}
.back-to-top a:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.listing-header {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.listing-header h3 { margin: 0; font-size: 1.3rem; }
.listing-price { font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.listing-body { padding: 24px; }
.listing-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.listing-gallery img {
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.listing-gallery img:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 5;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,32,58,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 30px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
  cursor: zoom-out;
  object-fit: contain;
}

.lightbox-nav {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1001;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { margin-right: 16px; }
.lightbox-next { margin-left: 16px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.8rem; }
}
@media (max-width: 800px) { .listing-gallery { grid-template-columns: repeat(2, 1fr); } }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,32,58,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-dialog {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-title {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: 1.3rem;
  padding-right: 24px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.modal-close:hover { color: var(--navy); }
@media (max-width: 600px) {
  .modal-dialog { padding: 24px 20px; }
}

.listing-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
.listing-preview-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}
.listing-preview-photos img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}
.listing-preview-photos img:not(:first-child) {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}
.listing-preview-info { min-width: 0; }
@media (max-width: 700px) {
  .listing-preview { grid-template-columns: 1fr; }
}

.details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.details-toggle .toggle-arrow { transition: transform 0.2s ease; display: inline-block; }
.details-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }

.listing-full-details[hidden] { display: none; }
.listing-full-details { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }

.listing-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--grey);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.listing-facts div strong { color: var(--navy); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 700px) { .listing-facts { grid-template-columns: repeat(2, 1fr); } }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
@media (max-width: 700px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-block h4 {
  color: var(--orange-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}
.spec-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.spec-block ul li {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.spec-block ul li:last-child { border-bottom: none; }

/* Testimonials */
.testimonial {
  background: #fff;
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.testimonial p { font-style: italic; margin: 0 0 10px; color: #444; }
.testimonial cite { font-weight: 700; color: var(--navy); font-style: normal; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list strong { color: var(--navy); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }

form.contact-form { display: grid; gap: 14px; }
form.contact-form label { font-weight: 600; color: var(--navy); font-size: 0.9rem; display: block; margin-bottom: 4px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.required-asterisk { color: var(--orange-dark); margin-left: 2px; }
.required-asterisk-red { color: #e02020; margin-left: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.file-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.file-upload-grid input[type="file"] {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
}
@media (max-width: 600px) { .file-upload-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: #cdd9e4; max-width: 600px; margin: 0 auto 24px; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c4d1;
  padding: 36px 20px 24px;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner a { color: #e7eef5; }
footer.site-footer .copyright {
  text-align: center;
  border-top: 1px solid #1a3a5c;
  margin-top: 24px;
  padding-top: 18px;
  color: #7f93a6;
}

.page-views {
  text-align: center;
  margin-top: 14px;
}
.page-views img { vertical-align: middle; }

.coming-soon-badge {
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.notice-box {
  background: #fff7e8;
  border: 1px solid #f1d9a8;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* ── Hamburger toggle ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .brand { margin-left: 0 !important; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    z-index: 99;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 6px 0 10px; }
  nav.main-nav a {
    padding: 13px 20px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav li:last-child a { border-bottom: none; }
}

/* Call link injected into mobile nav by JS */
.nav-call-mobile { display: none; }
@media (max-width: 860px) {
  .nav-call-mobile { display: block; border-top: 2px solid var(--border); margin-top: 4px; }
  .nav-call-mobile a { padding: 13px 20px; color: var(--orange-dark) !important; font-weight: 700; display: block; border-bottom: none !important; }
}

/* ── Mobile hero & section spacing ───────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 44px 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.97rem; }
  section { padding: 36px 0; }
  .cta-band { padding: 36px 16px; }
  h2.section-title { font-size: 1.45rem; }
}

/* ── Mobile brand strip ───────────────────────────────────── */
@media (max-width: 600px) {
  .brand-strip { gap: 18px; }
  .brand-strip-item img { height: 72px; }
  .brand-badge { height: 52px; font-size: 0.9rem; min-width: 100px; }
}

/* ── Mobile listing improvements ─────────────────────────── */
@media (max-width: 600px) {
  .listing-body { padding: 16px; }
  .listing-header { padding: 14px 16px; }
  .listing-header h3 { font-size: 1.1rem; }
  .listing-price { font-size: 1.2rem; }
  .card-photo-montage { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .back-to-top { margin: -20px 0 20px; }
}
