/* MIRA|MORE - Design Apartments — Static Site Styles */

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700&display=swap');

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #2b2823;
  --color-text-soft: #6b6459;
  --color-accent: #c19b77;
  --color-accent-dark: #a9825f;
  --color-dark: #171512;
  --color-border: #e8e2d8;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-weight: 400;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.9em 2em;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.site-logo img { height: 40px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--color-dark);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--color-accent-dark); }
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(23, 21, 18, 0.08);
  padding: 0.5rem 0;
  margin: 0;
  flex-direction: column;
  gap: 0;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: flex; }
.main-nav .dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  text-transform: none;
  font-weight: 400;
  font-size: 0.9rem;
}
.main-nav .dropdown li a:hover { background: var(--color-bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23,21,18,0.35) 0%, rgba(23,21,18,0.55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; opacity: 0.95; }

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,21,18,0.25) 0%, rgba(23,21,18,0.65) 100%);
}
.page-hero .container { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.page-hero h1 { color: #fff; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section.tight { padding: 2.5rem 0; }
.section-bg { background: var(--color-surface); }
.section-dark {
  background: var(--color-dark);
  color: #d8d3c9;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids & Cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card video { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; background: #000; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-top: 0; }

.video-walkthrough {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  margin: 1.5rem 0;
}

.video-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.gallery img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}
.feature-list li {
  padding-left: 1.6em;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.8rem;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin: 0 0.4em 0.4em 0;
}

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose p, .prose ul { color: var(--color-text-soft); }
.updated-note {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #b8b2a6;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #b8b2a6; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #3a352d;
  border-radius: 50%;
  color: #d8d3c9;
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid #2c281f;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #7c7669;
}
.footer-bottom a { color: #7c7669; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 24px 1.5rem; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.7rem 0; }
  .main-nav .dropdown { display: flex; position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .main-nav .has-dropdown:hover .dropdown { display: none; }
  .main-nav .has-dropdown.open .dropdown { display: flex; }

  .grid-2, .two-col { grid-template-columns: 1fr; }
  .grid-3, .video-embed-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
}
