/* MyHomeBase Manager — shared styles */

:root {
  --bg: #faf8f3;
  --bg-alt: #f2ede2;
  --ink: #1a2e2a;
  --ink-soft: #4a5d59;
  --accent: #c8553d;
  --accent-deep: #a03d2b;
  --rule: #d9d0bd;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(26, 46, 42, 0.04), 0 8px 24px rgba(26, 46, 42, 0.06);
  --radius: 4px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fraunces', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Header */
header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 28px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 40px;
}

/* Sections */
section.block {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

section.block:last-of-type {
  border-bottom: none;
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
}

h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 18px;
  max-width: 680px;
}

p.body-lg {
  font-size: 18px;
  line-height: 1.65;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 48px;
}

.feature {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.feature .num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

form {
  background: var(--card);
  padding: 40px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 8px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
  font-family: 'Inter', sans-serif;
}

button,
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}

button:hover,
.btn:hover {
  background: var(--accent-deep);
}

button:active {
  transform: translateY(1px);
}

.contact-info h3 {
  margin-bottom: 18px;
}

.contact-info .info-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.contact-info .info-item:last-child {
  border-bottom: none;
}

.contact-info .label-small {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Status message */
.status {
  margin-top: 16px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: var(--radius);
  display: none;
}

.status.success {
  display: block;
  background: #e8f0ea;
  color: #1f4a33;
  border: 1px solid #b8d0bf;
}

.status.error {
  display: block;
  background: #fbe9e4;
  color: #7a2a1b;
  border: 1px solid #e7b8ab;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--bg-alt);
  padding: 48px 0 36px;
  margin-top: 0;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand {
  color: var(--bg);
}

footer a {
  color: var(--bg-alt);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

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

footer .legal {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #8a9c98;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #2a413c;
  text-align: center;
}

/* Decorative element */
.ornament {
  display: inline-block;
  height: 1px;
  width: 48px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 12px;
}

/* Responsive */
@media (max-width: 720px) {
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  form {
    padding: 28px;
  }
  nav ul {
    gap: 20px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  section.block {
    padding: 56px 0;
  }
}

/* Entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow { animation: rise 0.6s ease-out both; }
.hero h1 { animation: rise 0.7s 0.08s ease-out both; }
.hero .lede { animation: rise 0.7s 0.16s ease-out both; }
.hero .btn { animation: rise 0.7s 0.24s ease-out both; }
