/*
Theme Name: HostSavvy
Theme URI: https://hostsavvy.ca
Author: HostSavvy
Description: Owner-facing site for HostSavvy, Airbnb property management in Toronto.
Version: 2.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: hostsavvy
*/

:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --muted: #6b7690;
  --bg: #ffffff;
  --bg-alt: #f5f3ee;
  --line: #e4e1d8;
  --brand: #0f5c55;
  --brand-dark: #0a423d;
  --brand-tint: #e3f0ee;
  --accent: #e8a33d;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-family: "Inter", system-ui, sans-serif; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.logo-mark { width: 34px; height: 34px; }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.header-call { padding: 10px 18px; font-size: .95rem; }
.header-call svg, .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-short { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--brand-tint), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero p.lead { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-card h3 { margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f5c55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; opacity: .07; pointer-events: none; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { font-size: .9rem; color: var(--muted); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--ink-soft); font-size: .97rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.rules { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.rules dt { font-weight: 700; margin-top: 16px; }
.rules dt:first-child { margin-top: 0; }
.rules dd { margin: 4px 0 0; color: var(--ink-soft); font-size: .97rem; }
.note { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .tag {
  position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan .check-list { margin-top: 14px; }
.plan .check-list li { font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 1.07rem; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info a { color: var(--ink); text-decoration: none; font-weight: 650; }
.contact-line { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 550; }
.notice.ok { background: var(--brand-tint); color: var(--brand-dark); }
.notice.err { background: #fdecea; color: #8a1c12; }
.form-fine { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* Generic pages */
.page-content { padding: 72px 0; }
.page-content .wrap { max-width: 780px; }

.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1.9fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,33,61,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 6px; border-radius: 999px; border: 2px solid var(--brand);
    color: var(--brand); font-weight: 650; font-size: .95rem; text-decoration: none;
  }
  .mobile-bar a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bar a.mb-primary { background: var(--brand); color: #fff; border-radius: 14px; font-size: .9rem; line-height: 1.15; text-align: center; padding: 6px 8px; }
  .mobile-bar a.mb-icon { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .72rem; border-radius: 14px; }
  .mobile-bar a.mb-icon svg { width: 18px; height: 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .header-call .num { display: none; }
  .call-short { display: inline; }
  .logo { font-size: 1.25rem; }
  .form, .rules { padding: 22px; }
}
