/* ============================================
   TNimmi Canada — Design Tokens
   ============================================ */
:root {
  --navy: #16324F;
  --navy-deep: #0E2338;
  --paper: #F7F4EE;
  --paper-dark: #EFEAE0;
  --gold: #C98A3E;
  --gold-deep: #A96E28;
  --pine: #2F5233;
  --ink: #1F2421;
  --ink-soft: #4A5259;
  --white: #FFFFFF;
  --line: rgba(22, 50, 79, 0.14);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-deep);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  border-bottom: 1px solid rgba(247,244,238,0.1);
  font-size: 0.82rem;
}

.header-top .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: rgba(247,244,238,0.7);
}

.header-top a:hover { color: var(--gold); }

.lang-switch {
  display: flex;
  gap: 4px;
  border-left: 1px solid rgba(247,244,238,0.2);
  padding-left: 16px;
  margin-left: 4px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(247,244,238,0.55);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 2px;
}
.lang-btn:hover { color: var(--paper); }
.lang-btn.active { color: var(--gold); background: rgba(201,138,62,0.12); }

.header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.wordmark span { color: var(--gold); }

.logo-badge {
  background: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.logo-badge-img { width: 100%; height: 100%; object-fit: contain; }

.logo-text-group { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--paper); }
.logo-tagline { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }

.logo-badge-footer {
  width: auto;
  height: auto;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.logo-full-img { width: 180px; height: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.main-nav a {
  color: rgba(247,244,238,0.85);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: rgba(247,244,238,0.4);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}
.btn-navy:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247,244,238,0.3);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-full-logo {
  width: 220px;
  max-width: 60%;
  height: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 { color: var(--white); }

.hero-lede {
  color: rgba(247,244,238,0.78);
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(247,244,238,0.6);
}
.hero-badges strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 1.05rem; }

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201,138,62,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,35,56,0) 40%, rgba(14,35,56,0.55) 100%);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
}

.on-navy { background: var(--navy-deep); color: var(--paper); }
.on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy p { color: rgba(247,244,238,0.75); }
.skyline { width: 100%; height: auto; opacity: 0.9; margin-bottom: -4px; }

.on-paper-dark { background: var(--paper-dark); }

/* ---------- Services directory ---------- */
.directory {
  border-top: 1px solid var(--line);
}

.directory-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.directory-item.has-icon {
  grid-template-columns: 56px 200px 1fr;
  align-items: start;
}

.directory-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.on-navy .directory-icon { color: #E7B266; }

.directory-item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.directory-mark {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

.directory-item p { margin: 0; }

/* ---------- Testimonial / trust strip ---------- */
.trust-strip {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip img { max-height: 56px; width: auto; }

/* ---------- Consultation callout ---------- */
.callout {
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.callout h2 { color: var(--white); }
.callout p { color: rgba(247,244,238,0.75); }

/* ---------- Specialized services ---------- */
.specialized-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.specialized-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.specialized-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.specialized-card h3 { margin-bottom: 14px; }
.specialized-card p { font-size: 0.95rem; }
.specialized-card .btn { margin-top: 12px; }

/* ---------- Promo banner ---------- */
.promo-banner {
  position: relative;
  background: var(--navy-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.promo-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.promo-main { flex: 1; min-width: 240px; }
.promo-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.promo-duration {
  color: rgba(247,244,238,0.85);
  font-weight: 600;
  font-size: 0.95rem;
}
.promo-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
}
.promo-currency { font-size: 1rem; font-weight: 600; }
.promo-from { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }
.promo-original {
  color: rgba(247,244,238,0.5);
  text-decoration: line-through;
  font-size: 1rem;
}
.promo-urgency {
  color: rgba(247,244,238,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Booking form / embed frame ---------- */
.booking-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 240px;
  padding: 24px;
}
.calendly-frame {
  display: block;
  padding: 8px;
}
.booking-placeholder {
  color: var(--ink-soft);
  max-width: 46ch;
}
.booking-placeholder code {
  display: block;
  margin-top: 16px;
  background: var(--paper-dark);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  text-align: left;
  overflow-x: auto;
}

/* ---------- Booking form ---------- */
.booking-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  padding: 8px 0;
}
.form-row { margin-bottom: 20px; }
.form-row.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.booking-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* ---------- Advisors ---------- */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.advisor-card { text-align: left; }
.advisor-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.advisor-card h3 { margin-bottom: 2px; }
.advisor-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.advisor-card p { font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 56px 0;
  max-width: 480px;
  margin: 0 auto;
}
.stats-strip-single {
  grid-template-columns: 1fr;
  max-width: 320px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 6px;
}
.stat span {
  font-size: 0.85rem;
  color: rgba(247,244,238,0.65);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

.contact-grid-single { grid-template-columns: 1fr; max-width: 640px; }

/* ---------- Contact button (opens phone popup) ---------- */
.contact-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.header-top .contact-btn { color: rgba(247,244,238,0.7); }
.header-top .contact-btn:hover { color: var(--gold); }
.contact-btn-inline { color: var(--gold); font-weight: 600; }
.contact-btn-link:hover { color: var(--gold); }

/* ---------- Phone number popup modal ---------- */
.phone-modal[hidden] { display: none; }
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,35,56,0.72);
}
.phone-modal-content {
  position: relative;
  max-width: min(90vw, 560px);
  z-index: 1;
}
.phone-modal-content img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.phone-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.contact-list span:first-child {
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 0.9rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247,244,238,0.65);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid h4 {
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(247,244,238,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: inline-block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 100%; }
  .hero-photo { max-height: 320px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .directory-item { grid-template-columns: 1fr; gap: 8px; }
  .directory-item.has-icon { grid-template-columns: 1fr; }
  .directory-icon { margin-bottom: 8px; }
  .callout { grid-template-columns: 1fr; padding: 36px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-top .wrap { justify-content: center; text-align: center; }
  .advisor-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .form-row.two-up { grid-template-columns: 1fr; gap: 0; }
  .logo-badge { width: 46px; height: 46px; }
  .logo-name { font-size: 1.15rem; }
  .logo-tagline { display: none; }
  .specialized-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
