/* assets/css/global.css */

/* Load fonts */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=PT+Serif:wght@400;700&display=swap');

:root {
  --bg-main: #ECE4DA;
  --bg-light: #F6F3EC;
  --accent-warm: #B9A590;
  --text-main: #36302A;
  --accent-dark: #574C3F;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}


/* Base */

body.tppt-page {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "PT Serif", serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Marcellus", serif;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.tppt-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.tppt-section {
  margin-bottom: 72px;
}

.tppt-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(54, 48, 42, 0.7);
  margin-bottom: 10px;
}

.tppt-h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.tppt-h2 {
  font-size: 26px;
  margin: 0 0 24px;
}

.tppt-h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.tppt-text {
  font-size: 15px;
  margin: 0 0 12px;
}

.tppt-micro {
  font-size: 13px;
  color: rgba(54, 48, 42, 0.75);
}

/* Buttons */

.tppt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.08s ease;
  white-space: nowrap;
}

.tppt-btn-primary {
  background: var(--accent-dark);
  color: var(--bg-light);
  border-color: var(--accent-dark);
}

.tppt-btn-primary:hover {
  transform: translateY(-1px);
  background: #463c32;
  border-color: #463c32;
}

.tppt-btn-secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(87, 76, 63, 0.4);
}

.tppt-btn-secondary:hover {
  background: rgba(87, 76, 63, 0.05);
}

/* Header */

.tppt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(236, 228, 218, 0.96);
  border-bottom: 1px solid rgba(87, 76, 63, 0.08);
}

.tppt-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Desktop: show header button, hide nav book item */
.tppt-header-book {
  display: inline-flex;
}

.tppt-nav-book {
  display: none;
}

.tppt-logo-link {
  display: flex;
  align-items: center;
}

.tppt-logo-img {
  height: 52px;
  width: auto;
}

.tppt-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.tppt-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tppt-mobile-menu-toggle {
  display: none;
  /* hidden on desktop by default */
  border: 1px solid rgba(87, 76, 63, 0.3);
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.9);
  padding: 6px 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tppt-mobile-menu-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

/* Hero */

.tppt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}

.tppt-hero-text p {
  max-width: 440px;
}

.tppt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 10px;
}

.tppt-hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  background-image: url("/assets/images/hero.jpg");
}

.tppt-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(54, 48, 42, 0.14), transparent 50%);
  pointer-events: none;
}

/* Value pillars */

.tppt-band-light {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 32px 28px;
}

.tppt-pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.tppt-pillar-card {
  padding-right: 10px;
}

.tppt-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(87, 76, 63, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Steps */

.tppt-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tppt-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(87, 76, 63, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Who I work with */

.tppt-who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tppt-who-card {
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(246, 243, 236, 0.7);
  border: 1px solid rgba(185, 165, 144, 0.3);
  font-size: 14px;
}

/* Proof */

.tppt-proof-band {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 28px 24px;
}

.tppt-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 18px;
  font-size: 14px;
}

.tppt-quote-text {
  font-style: italic;
  margin-bottom: 6px;
}

.tppt-proof-stats {
  font-size: 13px;
  color: rgba(54, 48, 42, 0.8);
}

/* Conversion */

.tppt-conversion-band {
  margin-top: 16px;
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(185, 165, 144, 0.15);
  border: 1px solid rgba(87, 76, 63, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.tppt-conversion-copy p {
  max-width: 380px;
  font-size: 15px;
}

.tppt-conversion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.tppt-conversion-note {
  font-size: 13px;
  color: rgba(54, 48, 42, 0.8);
}

/* Footer */

.tppt-footer {
  border-top: 1px solid rgba(87, 76, 63, 0.15);
  padding: 18px 20px 28px;
  font-size: 12px;
  background: var(--bg-main);
}

.tppt-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tppt-footer-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
}

/* Layout helpers */

.tppt-main {
  min-height: 60vh;
}

/* Form styling */

.tppt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  /* increased spacing for breathing room */
  font-size: 14px;
  align-items: start;
}

/* Full-width rows */
.tppt-form-full {
  grid-column: 1 / -1;
}

/* Labels */
.tppt-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

/* Inputs */
.tppt-form-input,
.tppt-form-textarea,
.tppt-form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(87, 76, 63, 0.28);
  background: rgba(246, 243, 236, 0.95);
  font-family: "PT Serif", serif;
  font-size: 15px;
  color: var(--text-main);
  box-sizing: border-box;
  /* Prevent overflow */
}

/* Textarea */
.tppt-form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Footnote */
.tppt-form-footnote {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}

/* Submit row */
.tppt-form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* Hidden honeypot */
.tppt-form-hidden {
  display: none;
}

/* Prevent form items from overflowing their columns */
.tppt-form>* {
  min-width: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .tppt-header-inner {
    align-items: center;
  }

  /* Hide the header button on mobile */
  .tppt-header-book {
    display: none;
  }

  /* Show the Book link inside the mobile nav */
  .tppt-nav-book {
    display: block;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: 999px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    background: var(--accent-dark);
    color: var(--bg-light);
    border: 1px solid var(--accent-dark);
  }

  .tppt-nav-right {
    gap: 8px;
  }

  /* Show the mobile menu toggle on small screens */
  .tppt-mobile-menu-toggle {
    display: inline-flex;
  }

  /* Hide nav by default on mobile */
  .tppt-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    background: var(--bg-main);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    padding: 12px 18px;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    z-index: 40;
  }

  /* When open, show nav */
  .tppt-nav.tppt-nav-open {
    display: flex;
  }

  .tppt-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-hero-image {
    order: -1;
    min-height: 220px;
  }

  .tppt-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-conversion-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .tppt-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}