/* colbytalley.com — modern luxury styles */

:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --bg-card: #1a1a1a;
  --text: #f5f5f5;
  --text-soft: #b8b8b8;
  --accent: #c9a87c;
  --accent-soft: #ddc3a0;
  --border: #2a2a2a;
  --radius: 12px;
  --max-w: 1200px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .cta-link {
  color: var(--accent);
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.nav-links .cta-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Desktop header phone (hidden on mobile) */
.header-phone {
  display: inline-block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: auto;
  margin-right: 1rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header-phone:hover {
  border-bottom-color: var(--accent);
}

/* Sticky mobile call bar (hidden on desktop) */
.sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid var(--border);
  padding: 0.5rem;
  gap: 0.5rem;
  /* lift above mobile safe area */
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
}

.sticky-call-bar .sticky-call,
.sticky-call-bar .sticky-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
}

.sticky-call-bar .sticky-call {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}

.sticky-call-bar .sticky-cta {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80') center/cover;
  background-color: var(--bg);
}

.hero-content {
  max-width: 800px;
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sla {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-trust {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text-soft);
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.05);
}

.hero-cta {
  margin-top: 1rem;
}



/* Hero CTA tertiary (audit link) — keeps audit discoverable but not co-equal */
.hero-cta-audit {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.hero-cta-audit a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.hero-cta-audit a:hover {
  color: var(--accent);
}

/* Larger primary CTA variant for hero */
.btn-large {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

/* Trust-signal one-liner (above testimonials) */
.trust-line {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.01em;
}

/* Testimonials container (stacked) */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}
.testimonials blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}
.testimonials blockquote p {
  margin: 0;
}
.quote-by {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
  font-style: normal;
  color: var(--text-soft);
  opacity: 0.85;
}
.review-source {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.review-source a {
  color: var(--accent);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-intro {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Services */
.services {
  background: var(--bg-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-card h3 {
  color: var(--accent);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Areas */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2rem;
}

.area-list li {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}

.area-list a {
  color: var(--text);
}

/* Lead form */
.lead-form-section {
  background: var(--bg-soft);
}

.lead-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lead-form span {
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: var(--text-soft);
}

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

.footer-fine {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  /* Swap header phone for sticky mobile bar */
  .header-phone {
    display: none;
  }

  .sticky-call-bar {
    display: flex;
  }

  /* Prevent the sticky bar from covering the last bit of content */
  body {
    padding-bottom: 72px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  /* Mobile overflow fix: prevent text from clipping at 375px (Opus 5 finding) */
  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }
  h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .hero-sub {
    max-width: 100%;
    padding: 0 0.25rem;
    overflow-wrap: break-word;
  }
  .hero-trust, .trust-line, .hero-cta-audit {
    padding: 0 0.5rem;
    overflow-wrap: break-word;
  }

  .area-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Realtor audit banner (moved from hero to footer banner per Opus 5 + M3 finding) */
.audit-banner {
  text-align: center;
  padding: 1.25rem 2rem;
  background: var(--bg-soft);
  font-size: 0.95rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.audit-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.audit-banner a:hover {
  color: var(--accent-soft);
}
