/* =========================================================
   TILI² - site.css
   ========================================================= */

/* --- Color tokens --- */
:root {
  --purple: #322652;
  --purple-2: #6D5BA6;
  --ink: #0F1020;
  --wash: #F6F6F9;
  --line: #E9E9F1;
}

/* --- Base & Typography --- */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px
}

h1,
h2 {
  color: var(--purple);
  line-height: 1.15;
  margin: 0 0 8px
}

p {
  margin: 0 0 12px
}

p.lead {
  font-size: 18px;
  max-width: 800px;
  margin: 8px 0 20px
}

.mini {
  font-size: 13px;
  color: #666
}

a {
  color: var(--purple);
  text-decoration: none
}

a.inline {
  color: var(--purple);
  font-weight: 600
}

/* --- Buttons --- */
.btn {
  appearance: none;
  border: 2px solid var(--purple);
  background: var(--purple);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}

.btn.alt {
  background: transparent;
  color: var(--purple)
}

/* --- Cards & Layout --- */
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px
}

@media (min-width: 880px) {
  .grid {
    grid-template-columns: 1fr 1fr
  }
}

section {
  padding: 28px 0
}

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

/* Header below nav; clip overlay so it can't cover nav */
.hero-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}

/* Banner image */
.hero-img {
  display: block;
  width: 100%;
  height: auto
}

/* full image on mobile */

/* Overlay row (logo/brand left, big tagline right) */
.hero-overlay {
  /* desktop values defined in media query */
}

/* Shared brand styles */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.logo {
  height: clamp(36px, 8vw, 64px);
  width: auto;
  max-width: 100%;
  display: block
}

.logo-link {
  display: inline-block
}

/* Right-hand overlay tagline */
.hero-text {
  text-align: right;
  color: var(--purple);
  font-size: clamp(16px, 2.1vw, 28px);
  line-height: 1.25;
}

/* Brand block default (mobile flow) */
.brand-overlay {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: transparent;
}

/* Enlarged tagline under logo (desktop) */
.brand-tagline {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--purple);
  margin-top: 4px;
  line-height: 1.2;
}

/* === Desktop overlay === */
@media (min-width: 880px) {

  .hero-header {
    --hero-h: clamp(220px, 28vw, 320px);
    height: var(--hero-h)
  }

  .hero-img {
    height: 100%;
    width: 100%;
    object-fit: cover
  }

  /* Align by top edges; responsive vertical offset using your 0.09 multiplier */
  .hero-overlay {
    position: absolute;
    top: clamp(24px, calc(var(--hero-h) * 0.09), 64px);
    left: 0;
    width: 100%;
    transform: none;
    display: flex;
    justify-content: space-between;
    /* logo left, tagline right */
    align-items: flex-start;
    /* align tops */
    padding: 0 40px;
    /* content inset */
    z-index: 2;
  }

  /* Stack logo over enlarged tagline; left-align both */
  .brand-overlay {
    position: static;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-tagline {
    text-align: left
  }

  .hero-text {
    position: static;
    text-align: right
  }
}

/* === Mobile: logo only in banner; brand strip below the banner === */
@media (max-width: 879px) {

  /* Keep overlay IN banner; show only logo left */
  .hero-overlay {
    position: absolute;
    top: 12px;
    left: 20px;
    width: auto;
    transform: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    z-index: 2;
  }

  /* Hide text next to logo + hide right-hand overlay tagline on mobile */
  .brand-overlay .name,
  .brand-overlay .mini,
  .brand-tagline,
  .hero-text {
    display: none
  }

  /* Mobile brand strip (between banner and nav) */
  .brand-strip {
    display: block;
    position: relative;
    z-index: 4;
    /* above header overlay, below nav */
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .brand-strip__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
  }

  .brand-strip__left .name {
    font-weight: 700;
    font-size: 1.1rem
  }

  .brand-strip__left .mini {
    color: #666;
    font-size: .95rem
  }

  .brand-strip__right {
    color: var(--purple);
    text-align: right;
    font-size: .95rem;
    line-height: 1.2
  }

  .logo {
    height: 40px
  }
}

/* Hide the brand strip on desktop */
@media (min-width: 880px) {
  .brand-strip {
    display: none
  }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-nav {
  background: var(--purple);
  position: relative;
  z-index: 6;
  /* ensure above header/overlay */
}

.main-nav .wrap {
  padding: 10px 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .2);
  border-radius: 4px;
  padding: 8px 12px
}

.nav-link.active {
  border-bottom: 2px solid #fff
}

/* =========================================================
   HERO / INTRO SECTION (below nav)
   ========================================================= */
.hero {
  padding: 40px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%)
}

/* CTA stacked copy (optional) */
.cta-block {
  margin: 40px 0;
  text-align: center
}

.cta-step {
  margin-bottom: 18px
}

.cta-step.highlight {
  font-weight: 500;
  color: var(--purple-2)
}

.cta-step .accent {
  font-weight: 700
}

.cta-final {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  margin-top: 22px
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr
}

@media (min-width: 880px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr
  }
}

.testimonial-card {
  border-left: 4px solid var(--purple-2);
  border-radius: 10px;
  padding: 24px;
  background: #fafafa;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.testimonial-card blockquote {
  font-style: italic;
  margin: 0;
  color: #333
}

.testimonial-card blockquote:before {
  content: "“";
  display: block;
  font-size: 36px;
  color: var(--purple-2);
  margin-bottom: 12px
}

.testimonial-card blockquote:after {
  content: "”";
  display: block;
  font-size: 36px;
  color: var(--purple-2);
  margin-top: 16px;
  text-align: right
}

/* =========================================================
   FORMS (incl. HubSpot embed)
   ========================================================= */
form {
  display: grid;
  gap: 12px;
  margin-top: 8px
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit
}

.hp {
  display: none
}

/* HubSpot overrides */
.hs-form .hs-button,
.hs-form .hs-button.primary,
.hs-form input[type="submit"],
.hs-form input[type="submit"].primary {
  background-color: var(--purple) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.7rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color .2s ease-in-out !important;
}

.hs-form .hs-button:hover,
.hs-form input[type="submit"]:hover {
  background-color: #241a3e !important
}

/* Space above embedded forms (header text block) */
.form-header {
  margin-bottom: 1.2rem
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: #666;
  font-size: 14px
}

.social-links {
  margin-top: 10px;
  display: flex;
  gap: 14px
}

.social-links img {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform .2s, opacity .2s
}

.social-links img:hover {
  transform: scale(1.15);
  opacity: .85
}

/* --- Mobile brand strip base (hidden by desktop query; shown by mobile query) --- */
.brand-strip {
  display: none
}

.brand-strip__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 40px
}

.brand-strip__left .name {
  font-weight: 700;
  font-size: 1.2rem
}

.brand-strip__left .mini {
  color: #666;
  font-size: 0.9rem
}

.brand-strip__right {
  color: var(--purple);
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.2
}

/* === Brand strip rules === */

/* Hide on desktop */
@media (min-width: 880px) {
  .brand-strip {
    display: none !important;
  }
}

/* Show on mobile */
@media (max-width: 879px) {
  .brand-strip {
    display: block !important;
    position: relative;
    z-index: 4; /* between header overlay (z:2) and nav (z:6) */
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .brand-strip__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
  }
  .brand-strip__left .name { font-weight: 700; font-size: 1.1rem; }
  .brand-strip__left .mini { color:#666; font-size:.95rem; }
  .brand-strip__right { color:var(--purple); font-size:.95rem; line-height:1.2; text-align:right; }
}