/* Sorte Property Management — base styles
   Brand colors sampled from the client's existing logo/site */
:root {
  --navy: #0b3c6d;
  --navy-dark: #082c50;
  --blue-accent: #1e73be;
  --slate: #304254;
  --bg-alt: #f4f6f9;
  --border: #e2e6ec;
  --white: #ffffff;
  --max: 1140px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle {
  flex-direction: column;
  gap: 5px;
}

nav.main-nav {
  display: none;
  width: 100%;
  flex-basis: 100%;
  order: 3;
}

nav.main-nav.open {
  display: block;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
  background: var(--bg-alt);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero img.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,44,80,0.75) 0%, rgba(8,44,80,0.55) 45%, rgba(8,44,80,0.85) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero p.lead {
  color: #eaf1fa;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  max-width: 46ch;
  margin: 0 0 1.6em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover { background: #eef3f8; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-solid {
  background: var(--navy);
  color: var(--white);
}
.btn-solid:hover { background: var(--navy-dark); }

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

.section-head {
  max-width: 60ch;
  margin: 0 0 32px;
}
.section-head p { color: #56657a; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--blue-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card h3 { font-size: 1.15rem; }
.card p { color: #56657a; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d9e6f2; max-width: 55ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--slate);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: 1px;
}

.contact-form textarea { resize: vertical; }
.contact-form .hp { display: none; }

.form-status {
  margin: 0;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: #1a7f37; }
.form-status[data-state="err"] { color: #c0392b; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfe0f0;
  padding: 40px 0 24px;
}

.site-footer a { color: #cfe0f0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  color: var(--white);
  font-family: Georgia, serif;
  margin: 0 0 10px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #4a6c8d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-row svg { width: 16px; height: 16px; fill: #cfe0f0; }

.footer-bottom {
  border-top: 1px solid #2c527a;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #9fbbd6;
}

/* ---------- About page extras ---------- */
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo img { height: 320px; width: 100%; object-fit: cover; }

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.values-list li {
  padding-left: 30px;
  position: relative;
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--blue-accent);
  border-radius: 2px;
}

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }

  nav.main-nav {
    display: block;
    width: auto;
    flex-basis: auto;
    order: 0;
  }
  nav.main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 4px;
  }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap { aspect-ratio: auto; min-height: 320px; }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-inner { padding-top: 120px; padding-bottom: 100px; }
  section { padding: 80px 0; }
  .logo img { height: 52px; }
}
