/**
 * Aalay Properties — site styles
 * Site styles.
 */

:root {
  --primary: #0b4a45;
  --primary-hover: #083b37;
  --secondary: #062f2b;
  --primary-rgb: 11, 74, 69;
  --secondary-rgb: 6, 47, 43;
  --accent: #da3831;
  --accent-rgb: 218, 56, 49;
  --accent-on-dark: #f07a73; /* lighter tint of the logo red, readable on dark green */
  --accent-hover: #c22f29;
  --text: #062f2b;
  --muted: rgba(var(--secondary-rgb), 0.66);
  --bg: #ffffff;
  --bg-muted: rgba(176, 141, 87, 0.08);
  --tint: #f7f5ef;
  --border: rgba(var(--secondary-rgb), 0.14);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
  --ring: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
  --radius: 5px;
  --header-h: 111px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* --- Brand --- */
/* Image logo (used when assets/images/Properties_BlackOnWhite@300x-8.png exists) */
.brand-mark {
  /* Sized so the visible logo matches aalaycollective.com (≈111×51px, same offset).
     This PNG is tightly cropped, so no scale() is needed. */
  display: block;
  width: 111px;
  height: 70px;
  background: url("../images/Properties_BlackOnWhite@300x-8.png") center / contain no-repeat;
  position: relative;
  left: 1px;
  top: -5px;
}

/* Text wordmark fallback, echoing the "aalay." logo */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: #000;
  height: 70px;
  justify-content: center;
}
.wordmark-main {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
}
.wordmark-main .wm-dot {
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.wordmark-sub {
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.site {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.site a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 40px; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.16s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; background: var(--primary); padding: 10px 18px; border-radius: var(--radius); font-weight: 600; }
.nav .nav-cta:hover { color: #fff; background: var(--primary-hover); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.97rem; border: 1px solid transparent;
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .company-link:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: rgba(var(--primary-rgb), 0.45); }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-hover); }

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 110px) 0 110px;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.hero-title {
  max-width: 860px; margin: 0 0 22px;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em;
}
.hero-sub { margin: 0 0 34px; max-width: 660px; font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero stage strip: Source → Refurbish → Retain */
.stages {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.stages li { display: inline-flex; align-items: center; gap: 14px; }
.stages .stage {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
}
.stages .arrow { color: rgba(var(--secondary-rgb), 0.35); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-tint { background: var(--tint); }
.section-label {
  margin: 0 0 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
}
.section-title {
  margin: 0 0 44px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.03em;
}
.section-intro { margin: -24px 0 44px; max-width: 660px; font-size: 1.05rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.split .section-title { margin-bottom: 0; }

.prose p { margin: 0 0 18px; font-size: 1.05rem; color: var(--muted); }
.prose strong, .prose em { color: var(--text); }

/* --- Cards --- */
.company-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.company {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.company:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(var(--primary-rgb), 0.3); }
.company::before {
  content: ""; position: absolute; top: -1px; left: 26px; width: 36px; height: 3px;
  background: var(--accent); border-radius: 0 0 2px 2px;
}
.company-num { position: absolute; top: 26px; right: 26px; font-size: 0.8rem; font-weight: 600; color: rgba(var(--secondary-rgb), 0.3); }
.company-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.company-name { margin: 8px 0 10px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.company-desc { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 0.97rem; }

.checklist { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 6px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.company-link {
  align-self: flex-start; font-size: 0.93rem; font-weight: 600;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3); padding-bottom: 2px; color: var(--primary) !important;
}
.company-link:hover { border-bottom-color: var(--primary); }

/* --- Values --- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h3 { margin: 18px 0 8px; font-size: 1.15rem; font-weight: 700; }
.value p { margin: 0; color: var(--muted); }
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.07); color: var(--primary);
}
.value-icon svg { width: 24px; height: 24px; }

/* --- Sell to us (form) --- */
.sell-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start;
  padding: 44px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.sell-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.sell-card .section-title { margin-bottom: 16px; }
.sell-card .prose p:last-child { margin-bottom: 28px; }
.sell-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sell-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.sell-list .n { font-size: 0.8rem; font-weight: 600; color: rgba(var(--secondary-rgb), 0.35); padding-top: 3px; }
.sell-list strong { display: block; font-size: 1rem; }
.sell-list span { color: var(--muted); font-size: 0.94rem; }

.sell-form fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.sell-form legend {
  padding: 0; margin: 0 0 14px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: 0.88rem; font-weight: 600; color: rgba(var(--secondary-rgb), 0.85); }
.field .opt { font-weight: 400; color: var(--muted); }

.input {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--bg);
  border: 1px solid rgba(var(--secondary-rgb), 0.22); border-radius: var(--radius);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input::placeholder { color: rgba(var(--secondary-rgb), 0.45); }
.input:hover { border-color: rgba(var(--secondary-rgb), 0.35); }
.input:focus { outline: none; box-shadow: var(--ring); border-color: rgba(var(--primary-rgb), 0.55); }
select.input {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23062F2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--accent); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
.field-error { font-size: 0.84rem; color: #b8302a; }

.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.agree + .field-error { display: block; margin: 6px 0 0 28px; }
.form-submit { margin-top: 24px; border: 0; cursor: pointer; font-family: inherit; }

.form-alert {
  margin: 0 0 22px; padding: 12px 14px; font-size: 0.93rem; border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.06); color: var(--text);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 40px 32px; border-radius: var(--radius); background: var(--tint); text-align: left; }
.form-success:focus { outline: none; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--primary); color: #fff; margin-bottom: 18px;
}
.success-icon svg { width: 26px; height: 26px; }
.form-success h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.form-success p { margin: 0 0 20px; color: var(--muted); }

/* --- Contact --- */
.contact { background: var(--secondary); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.contact-card { background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.contact-card .form-submit { margin-top: 20px; }
.contact-success h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.contact-success p { margin: 0 0 18px; color: var(--muted); }
.on-dark { color: #fff; }
.section-label.on-dark { color: var(--accent-on-dark); }
.contact .section-title { margin-bottom: 14px; }
.contact-sub { margin: 0; max-width: 560px; color: rgba(255, 255, 255, 0.75); }

/* --- Footer --- */
.footer { padding: 34px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.footer-note a { color: var(--primary); font-weight: 600; }
.copyright { margin: 0; font-size: 12px; color: var(--muted); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .company-grid { grid-template-columns: 1fr; }
  .sell-card { grid-template-columns: 1fr; gap: 36px; padding: 32px 26px; }
  .sell-intro { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .values { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  :root { --header-h: 103px; }
  .header { padding: 16px 18px; }
  .container { padding: 0 18px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px 18px; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .hero { padding: calc(var(--header-h) + 60px) 0 70px; }
  .stages { margin-top: 44px; }
  .section { padding: 70px 0; }
  .btn { width: 100%; }
  .contact-card { padding: 24px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .sell-card { padding: 26px 18px; }
  .form-submit { width: 100%; }
}

/* --- Cloudflare Turnstile --- */
.captcha { margin-top: 22px; min-height: 65px; }
.captcha + .field-error { display: block; margin-top: 6px; }
