/* ============================================
   GUELPH SUMMER FINDER 2026 — Tom & Carly RE
   Brand: navy (logo script) + red (heart/roof)
   Summer accents: sun-gold, verdant green
   Type: Fraunces (display) + DM Sans (body)
   ============================================ */

:root {
  --navy: #1d3a5f;
  --navy-deep: #14283f;
  --red: #c0392b;
  --red-soft: #e74c3c;
  --sun: #F2A413;
  --sun-light: #FEF1D6;
  --sun-pale: #FFFBF2;
  --green: #2D6A4F;
  --green-mid: #40916C;
  --green-light: #DDF0E4;
  --ink: #1A1A1A;
  --ink-mid: #3D3D3D;
  --ink-soft: #6B7280;
  --white: #FFFFFF;
  --border: #E6E0D4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 14px rgba(20,40,63,0.08);
  --shadow-lg: 0 12px 40px rgba(20,40,63,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px;
}
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-cta {
  background: var(--red); color: var(--white);
  text-decoration: none; padding: 9px 18px;
  border-radius: 100px; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-soft); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(165deg, var(--sun-pale) 0%, var(--green-light) 100%);
  padding: 48px 22px 56px;
  text-align: center;
}
.hero-top { max-width: 620px; margin: 0 auto 32px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1; color: var(--navy); margin-bottom: 16px;
  font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub {
  font-size: 1.05rem; color: var(--ink-mid);
  max-width: 540px; margin: 0 auto;
}

/* ============ WIZARD ============ */
.wizard {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 600px; margin: 0 auto;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  text-align: left;
}
.wiz-progress {
  height: 7px; background: var(--green-light);
  border-radius: 100px; overflow: hidden; margin-bottom: 10px;
}
.wiz-progress-bar {
  height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--sun), var(--green-mid));
  border-radius: 100px; transition: width 0.4s ease;
}
.wiz-step-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px;
}

.wiz-step { display: none; animation: fadeIn 0.35s ease; }
.wiz-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wiz-q {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; font-weight: 600;
}
.wiz-hint { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }

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

.wiz-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center;
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 10px;
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.15s;
  font-family: 'DM Sans', sans-serif; min-height: 96px;
}
.wiz-opt small { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); }
.opt-emoji { font-size: 1.7rem; line-height: 1; }
.wiz-opt:hover { border-color: var(--green-mid); transform: translateY(-2px); }
.wiz-opt.selected {
  border-color: var(--green); background: var(--green-light);
  box-shadow: inset 0 0 0 1px var(--green);
}
.wiz-opt.selected small { color: var(--green-mid); }

.wiz-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px;
}

.hero-skip {
  display: block; margin: 22px auto 0;
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 0.9rem; text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.hero-skip:hover { color: var(--navy); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none;
  text-decoration: none; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif; text-align: center;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--green-mid); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sun { background: var(--sun); color: var(--white); }
.btn-sun:hover:not(:disabled) { background: #d9930c; transform: translateY(-1px); }
.btn-sun:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-back { background: transparent; color: var(--ink-soft); padding: 12px 8px; }
.btn-back:hover { color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ============ RESULTS ============ */
.results-section { background: var(--sun-pale); padding: 50px 0 90px; }
.results-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--navy); line-height: 1.1;
}
.accent { color: var(--sun); }
.section-sub { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px;
}

.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); transition: all 0.2s;
  animation: cardIn 0.4s ease backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-emoji { font-size: 2.1rem; padding: 22px 22px 0; }
.card-body { padding: 12px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-tags { margin-bottom: 8px; }
.card-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 5px; padding: 3px 8px; margin-right: 5px; margin-bottom: 4px;
}
.t-free { background: var(--green-light); color: var(--green); }
.t-low { background: var(--sun-light); color: #8a5a00; }
.t-paid { background: #e7eef7; color: var(--navy); }
.t-outdoor { background: #f0fdf4; color: #166534; }
.t-indoor { background: #eef2ff; color: #3730a3; }

.card h3 {
  font-family: 'Fraunces', serif; font-size: 1.18rem; font-weight: 600;
  color: var(--navy); margin-bottom: 8px; line-height: 1.3;
}
.card p { font-size: 0.88rem; color: var(--ink-mid); flex: 1; margin-bottom: 12px; }
.card-meta {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 14px;
}
.card-foot { display: flex; gap: 8px; align-items: center; }
.card-link {
  color: var(--green); font-weight: 600; font-size: 0.85rem;
  text-decoration: none; white-space: nowrap;
}
.card-link:hover { text-decoration: underline; }
.card-add {
  flex: 1; background: transparent; border: 1.5px solid var(--green);
  color: var(--green); border-radius: 8px; padding: 8px 10px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.card-add:hover { background: var(--green); color: var(--white); }
.card-add.added { background: var(--green); color: var(--white); }
.card-add:disabled { opacity: 0.5; cursor: not-allowed; }

.no-results { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.no-results p { font-size: 1.1rem; margin-bottom: 20px; }

/* ============ STICKY TRAY ============ */
.tray {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--navy); color: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  animation: trayUp 0.3s ease;
}
@keyframes trayUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tray-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.tray-info { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tray-info strong { font-size: 1.3rem; color: var(--sun); }
.tray-items { font-size: 1.2rem; letter-spacing: 2px; }

/* ============ MODAL / PLANNER ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,40,63,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--white); border-radius: var(--radius);
  max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 32px; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--sun-pale); border: none; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink-soft);
}
.modal-close:hover { background: var(--border); }

.plan-header { text-align: center; margin-bottom: 24px; }
.plan-header h3 {
  font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--navy);
  font-weight: 600; margin-bottom: 4px;
}
.plan-header p { font-size: 0.9rem; color: var(--ink-soft); }

.plan-stop {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.plan-stop:last-of-type { border-bottom: none; }
.plan-time {
  font-size: 0.72rem; font-weight: 700; color: var(--sun);
  letter-spacing: 0.04em; min-width: 62px; padding-top: 3px;
}
.plan-stop-body h4 { font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.plan-stop-body p { font-size: 0.82rem; color: var(--ink-soft); }

.plan-tip {
  background: var(--sun-light); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.85rem; color: #7a5200; margin: 18px 0;
}
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-actions .btn { flex: 1; min-width: 130px; }

/* ============ SIGNUP ============ */
.signup-section { background: var(--navy); color: var(--white); padding: 76px 0; }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.signup-text .eyebrow { color: var(--sun); }
.signup-text h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15;
  margin-bottom: 16px; color: var(--white);
}
.signup-text h2 em { color: var(--sun); font-style: italic; }
.signup-text p { color: #c3cdd9; margin-bottom: 20px; font-size: 0.95rem; }
.signup-bullets { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.signup-bullets li { font-size: 0.92rem; color: #d4dbe3; }

.signup-form-wrap { background: var(--white); border-radius: var(--radius); padding: 30px; color: var(--ink); }
.signup-form h3 { font-family: 'Fraunces', serif; font-size: 1.35rem; color: var(--navy); font-weight: 600; }
.form-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--ink-mid); margin-bottom: 5px;
}
.form-field input, .form-field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif; color: var(--ink);
  outline: none; transition: border-color 0.15s; background: var(--white);
}
.form-field input:focus, .form-field select:focus { border-color: var(--green-mid); }
.form-disclaimer { font-size: 0.74rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.form-success { text-align: center; padding: 20px; }
.success-icon { font-size: 3.4rem; margin-bottom: 14px; }
.form-success h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }

/* ============ ABOUT ============ */
.carly-section { background: var(--sun-pale); padding: 72px 0; border-top: 1px solid var(--border); }
.carly-inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.carly-logo-wrap { text-align: center; }
.carly-logo {
  width: 220px; max-width: 100%; height: auto;
  background: var(--white); padding: 28px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.carly-text .eyebrow { color: var(--green); }
.carly-text h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); margin-bottom: 16px;
}
.carly-text h2 em { font-style: italic; color: var(--red); }
.carly-text p { color: var(--ink-mid); margin-bottom: 14px; font-size: 0.95rem; max-width: 520px; }
.carly-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); color: var(--white); padding: 44px 0 22px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 36px; margin-bottom: 28px;
}
.footer-mark { font-family: 'Fraunces', serif; font-size: 1.15rem; }
.footer-mark strong { color: var(--sun); }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 0.85rem; color: #8a97a8; margin: 8px 0 12px; }
.footer-cta {
  display: inline-block; color: var(--sun); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
}
.footer-cta:hover { text-decoration: underline; }
.footer-brokerage { text-align: right; }
.hs-footer-logo {
  height: 54px; width: auto; max-width: 220px;
  background: var(--white); padding: 12px 16px; border-radius: 10px;
  display: inline-block;
}
.footer-links-row { margin-top: 12px; font-size: 0.85rem; }
.footer-links-row a { color: #b8c2cf; text-decoration: none; }
.footer-links-row a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid #2a3f56; padding-top: 18px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: #7d8a9a; }
.footer-bottom a { color: #9aa6b5; text-decoration: none; }
.footer-bottom a:hover { color: var(--sun); }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .signup-inner { grid-template-columns: 1fr; gap: 36px; }
  .carly-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .carly-text p { margin-left: auto; margin-right: auto; }
  .carly-actions { justify-content: center; }
}
@media (max-width: 560px) {
  .footer-brokerage { text-align: left; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 32px 16px 80px; }
  .wizard { padding: 24px 18px 22px; border-radius: 14px; }
  .wiz-q { font-size: 1.35rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wiz-opt { min-height: 86px; padding: 14px 8px; font-size: 0.88rem; }
  .opt-emoji { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: flex-start; }
  .tray-inner { padding: 10px 16px; }
  .tray-info { font-size: 0.82rem; }
  .modal { padding: 24px 20px; }
  .plan-actions .btn { min-width: 100%; }
  .nav-logo img { height: 36px; }
}
@media (max-width: 380px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Print fallback for planner */
@media print {
  body * { visibility: hidden; }
  #plan-content, #plan-content * { visibility: visible; }
  #plan-content { position: absolute; left: 0; top: 0; width: 100%; }
  .plan-actions, .modal-close { display: none !important; }
}
