/* ==========================================================================
   HaltonHomeRentals.ca — Main Stylesheet
   Charcoal + Bright Teal — modern, IDX-search-app feel
   ========================================================================== */

:root {
  /* Core palette */
  --charcoal: #1a1d24;
  --charcoal-soft: #2a2e38;
  --charcoal-light: #3a3f4a;
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-dark: #0d9488;
  --teal-soft: #ccfbf1;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --bg-warm: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Text */
  --text: #1a1d24;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-inverse: #ffffff;

  /* Accents */
  --gold: #f59e0b;
  --red: #ef4444;
  --green: #10b981;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-teal: 0 4px 14px rgba(20, 184, 166, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p.lead { font-size: 1.2rem; color: var(--text-soft); line-height: 1.6; }

a {
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
}
a:hover { color: var(--teal); border-bottom-color: currentColor; }

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

.text-teal { color: var(--teal); }
.text-charcoal { color: var(--charcoal); }
.text-muted { color: var(--text-muted); }

.highlight-teal {
  background: linear-gradient(180deg, transparent 60%, var(--teal-soft) 60%);
  padding: 0 4px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

section {
  padding: 80px 0;
}
section.tight { padding: 48px 0; }
section.alt {
  background: var(--bg-warm);
}
section.dark {
  background: var(--charcoal);
  color: var(--text-inverse);
}
section.dark h1,
section.dark h2,
section.dark h3 {
  color: var(--white);
}

.center { text-align: center; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
  border-color: transparent;
}
.btn-charcoal {
  background: var(--charcoal);
  color: var(--white);
}
.btn-charcoal:hover {
  background: var(--charcoal-soft);
  color: var(--white);
  transform: translateY(-1px);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--bg-warm);
}
.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}
.btn-inverse {
  background: var(--white);
  color: var(--charcoal);
}
.btn-inverse:hover {
  background: var(--teal);
  color: var(--white);
  border-color: transparent;
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */

.compliance-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  border: none;
}
.logo:hover { color: var(--charcoal); border: none; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}
.logo-text .accent { color: var(--teal); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.93rem;
  border: none;
}
.primary-nav a:hover { color: var(--teal); border: none; }
.primary-nav .cta-btn {
  background: var(--teal);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-teal);
}
.primary-nav .cta-btn:hover { background: var(--teal-dark); color: var(--white); }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .mobile-toggle { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero .eyebrow { color: var(--teal-bright); }

.hero-search {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.hero-search input,
.hero-search select {
  flex: 1;
  padding: 14px 16px;
  border: 0;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--charcoal);
  outline: none;
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search button {
  background: var(--teal);
  color: var(--white);
  border: 0;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
.hero-search button:hover { background: var(--teal-dark); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-bright);
  display: block;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ==========================================================================
   IDX EMBED — Realty Ninja drop-in zone
   ========================================================================== */

.idx-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 400px;
  box-shadow: var(--shadow);
}
.idx-embed.idx-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border-strong);
  background: var(--bg-warm);
  color: var(--text-muted);
}
.idx-embed.idx-placeholder::before {
  content: '🏠';
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
  height: 100%;
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card .icon {
  width: 48px;
  height: 48px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }
.card .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-dark);
  border: none;
}
.card .more:hover { color: var(--teal); border: none; }

/* Feature card (gradient accent variant) */
.card-feature {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  color: var(--white);
  border: 0;
  position: relative;
  overflow: hidden;
}
.card-feature::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.card-feature h3 { color: var(--white); position: relative; }
.card-feature p { color: rgba(255,255,255,0.8); position: relative; }
.card-feature .icon {
  background: rgba(20, 184, 166, 0.2);
  color: var(--teal-bright);
}

/* ==========================================================================
   PILLS / TAGS
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-dark {
  background: var(--charcoal);
  color: var(--teal-bright);
}
.pill-gold {
  background: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
textarea { min-height: 120px; resize: vertical; }

.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   CTA BANNERS
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(20, 184, 166, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--white);
  position: relative;
  max-width: 640px;
  margin: 0 auto 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* The "free property management" hook callout */
.hook-banner {
  background: var(--teal);
  color: var(--white);
  padding: 14px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.hook-banner strong { font-weight: 800; }
.hook-banner a { color: var(--white); border-bottom-color: rgba(255,255,255,0.5); font-weight: 700; }
.hook-banner a:hover { border-bottom-color: var(--white); color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.site-footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  border: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--teal-bright); border: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand .logo:hover { color: var(--white); }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-brand .powered {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 12px 0 0;
}
.footer-brand .powered a { color: rgba(255,255,255,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--teal);
}

/* Inline list styles */
ul.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
ul.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
