/* ============================================================
   Transformed Works — custom.css
   All classes prefixed with tw- to avoid GeneratePress conflicts
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --tw-cream:       #FAF8F3;
  --tw-cream-dark:  #F0EBE0;
  --tw-green:       #1E4D3C;
  --tw-green-mid:   #2E6B53;
  --tw-green-light: #E4EFE9;
  --tw-warm:        #C49A6C;
  --tw-warm-light:  #F7F0E6;
  --tw-dark:        #1A1916;
  --tw-mid:         #4A4741;
  --tw-muted:       #8A8580;
  --tw-border:      rgba(30, 77, 60, 0.15);
  --tw-serif:       'Lora', Georgia, serif;
  --tw-sans:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base resets for front page ────────────────────────────── */
.tw-front-page {
  font-family: var(--tw-sans);
  background: var(--tw-cream);
  color: var(--tw-dark);
  font-size: 16px;
  line-height: 1.6;
}

.tw-front-page *,
.tw-front-page *::before,
.tw-front-page *::after {
  box-sizing: border-box;
}

/* ── Shared section styles ─────────────────────────────────── */
.tw-section { padding: 96px 2.5rem; }
.tw-container { max-width: 1160px; margin: 0 auto; }

.tw-section-tag {
  font-family: var(--tw-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tw-warm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tw-section-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--tw-warm);
  flex-shrink: 0;
}
.tw-section-tag--light { color: rgba(255,255,255,0.5); }
.tw-section-tag--light::before { background: rgba(255,255,255,0.5); }

.tw-section-title {
  font-family: var(--tw-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--tw-dark);
  margin-bottom: 1rem;
}
.tw-section-title--light { color: white; }

.tw-section-body {
  font-size: 17px;
  color: var(--tw-mid);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.tw-btn-primary {
  font-family: var(--tw-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--tw-cream) !important;
  background: var(--tw-green);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.tw-btn-primary:hover {
  background: var(--tw-green-mid);
  transform: translateY(-1px);
  color: var(--tw-cream) !important;
}

.tw-btn-ghost {
  font-family: var(--tw-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--tw-green) !important;
  background: transparent;
  border: 1.5px solid var(--tw-green);
  padding: 13px 28px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
  display: inline-block;
}
.tw-btn-ghost:hover {
  background: var(--tw-green-light);
  color: var(--tw-green) !important;
}

/* ── NAV ───────────────────────────────────────────────────── */
.tw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.tw-nav-logo {
  font-family: var(--tw-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--tw-green) !important;
  text-decoration: none !important;
  letter-spacing: -0.2px;
}

.tw-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tw-nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--tw-mid) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.tw-nav-links a:hover { color: var(--tw-green) !important; }

.tw-nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--tw-cream) !important;
  background: var(--tw-green);
  border: none;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
}
.tw-nav-cta:hover { background: var(--tw-green-mid); }

/* ── HERO ──────────────────────────────────────────────────── */
.tw-hero-section {
  padding: 0;
  min-height: 100vh;
  background: var(--tw-cream);
}

.tw-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 2.5rem 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.tw-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tw-warm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tw-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--tw-warm);
}

.tw-hero-title {
  font-family: var(--tw-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--tw-dark);
  margin-bottom: 1.5rem;
}
.tw-hero-title em {
  font-style: italic;
  color: var(--tw-green);
}

.tw-hero-sub {
  font-size: 17px;
  color: var(--tw-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.tw-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual */
.tw-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tw-stat-card {
  background: white;
  border: 1px solid var(--tw-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: tw-float-in 0.6s ease both;
}
.tw-stat-card--offset { margin-left: 2rem; animation-delay: 0.1s; }
.tw-stat-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes tw-float-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tw-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tw-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tw-green);
}
.tw-stat-icon svg { width: 22px; height: 22px; }

.tw-stat-num {
  font-family: var(--tw-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--tw-green);
  line-height: 1;
}
.tw-stat-label { font-size: 13px; color: var(--tw-muted); margin-top: 2px; }

.tw-hero-badge {
  background: var(--tw-warm-light);
  border: 1px solid rgba(196, 154, 108, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  animation: tw-float-in 0.6s 0.3s ease both;
}
.tw-hero-badge p { font-size: 13px; color: var(--tw-mid); line-height: 1.5; }
.tw-hero-badge strong { color: var(--tw-green); font-weight: 500; }

/* ── PROBLEM ───────────────────────────────────────────────── */
.tw-problem { background: var(--tw-dark); }
.tw-problem .tw-section-tag { color: var(--tw-warm); }
.tw-problem .tw-section-tag::before { background: var(--tw-warm); }
.tw-problem .tw-section-title { color: white; }
.tw-problem .tw-section-body { color: rgba(250, 248, 243, 0.65); margin-bottom: 0; }

.tw-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.tw-problem-item {
  background: var(--tw-dark);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.tw-problem-item:hover { background: #252420; }

.tw-problem-num {
  font-family: var(--tw-serif);
  font-size: 13px;
  color: var(--tw-warm);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.tw-problem-item h3 {
  font-family: var(--tw-serif);
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.tw-problem-item p {
  font-size: 14px;
  color: rgba(250, 248, 243, 0.55);
  line-height: 1.65;
}

/* ── SERVICES ──────────────────────────────────────────────── */
.tw-services { background: var(--tw-cream); }

.tw-services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.tw-services-intro {
  font-size: 16px;
  color: var(--tw-mid);
  line-height: 1.7;
}

.tw-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tw-service-card {
  background: white;
  border: 1px solid var(--tw-border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.tw-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(30, 77, 60, 0.08);
}

.tw-service-card--featured {
  background: var(--tw-green);
  border-color: var(--tw-green);
}

.tw-service-card--warm {
  background: var(--tw-warm-light);
  border-color: rgba(196, 154, 108, 0.2);
}

.tw-service-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tw-muted);
  margin-bottom: 1.25rem;
}
.tw-service-card--featured .tw-service-tag { color: rgba(255, 255, 255, 0.55); }

.tw-service-card h3 {
  font-family: var(--tw-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--tw-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.tw-service-card--featured h3 { color: white; }

.tw-service-card p {
  font-size: 14px;
  color: var(--tw-muted);
  line-height: 1.65;
  flex: 1;
}
.tw-service-card--featured p { color: rgba(255, 255, 255, 0.7); }

.tw-service-price {
  font-family: var(--tw-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--tw-green);
  margin-top: 1.25rem;
}
.tw-service-card--featured .tw-service-price { color: rgba(255, 255, 255, 0.9); }

/* Last two service cards span full bottom row */
.tw-service-card:nth-child(4),
.tw-service-card:nth-child(5) {
  grid-column: span 1;
}
@media (min-width: 901px) {
  .tw-services-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .tw-service-card:nth-child(4) { grid-column: 1 / 2; grid-row: 2; }
  .tw-service-card:nth-child(5) { grid-column: 2 / 3; grid-row: 2; }
}

/* ── PROCESS ───────────────────────────────────────────────── */
.tw-process { background: var(--tw-cream-dark); }

.tw-process-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.tw-process-header .tw-section-tag { justify-content: center; }
.tw-process-header .tw-section-body { margin: 0 auto; }

.tw-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.tw-process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--tw-border);
  z-index: 0;
}

.tw-process-step {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.tw-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tw-green);
  color: white;
  font-family: var(--tw-serif);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.tw-process-step h3 {
  font-family: var(--tw-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--tw-dark);
  margin-bottom: 0.75rem;
}

.tw-process-step p {
  font-size: 14px;
  color: var(--tw-mid);
  line-height: 1.65;
}

.tw-process-step ul {
  list-style: none;
  text-align: left;
  margin-top: 0.75rem;
  padding: 0;
}

.tw-process-step ul li {
  font-size: 13px;
  color: var(--tw-muted);
  padding: 3px 0 3px 14px;
  position: relative;
}
.tw-process-step ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--tw-warm);
  font-size: 11px;
  top: 4px;
}

/* ── CASE STUDIES ──────────────────────────────────────────── */
.tw-case-studies { background: var(--tw-cream); }

.tw-cs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.tw-cs-note {
  font-size: 15px;
  color: var(--tw-mid);
  max-width: 360px;
  line-height: 1.6;
}

.tw-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tw-study-card {
  background: white;
  border: 1px solid var(--tw-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.tw-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(30, 77, 60, 0.1);
}

.tw-study-thumb { height: 6px; }
.tw-study-thumb--green  { background: var(--tw-green); }
.tw-study-thumb--warm   { background: var(--tw-warm); }
.tw-study-thumb--mid    { background: var(--tw-green-mid); }

.tw-study-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tw-study-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tw-muted);
  margin-bottom: 1rem;
}

.tw-study-card h3 {
  font-family: var(--tw-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--tw-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.tw-study-card p {
  font-size: 14px;
  color: var(--tw-mid);
  line-height: 1.65;
  flex: 1;
}

.tw-study-outcome {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tw-border);
}

.tw-study-outcome span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tw-green);
  display: block;
  margin-bottom: 4px;
}

.tw-study-outcome p { font-size: 13px; color: var(--tw-mid); line-height: 1.5; }

.tw-study-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--tw-green) !important;
  text-decoration: none !important;
  transition: gap 0.2s;
}
.tw-study-link:hover { gap: 10px; }
.tw-study-link::after { content: '→'; }

/* ── ABOUT ─────────────────────────────────────────────────── */
.tw-about { background: var(--tw-green); }

.tw-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.tw-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.tw-cred {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tw-cred-num {
  font-family: var(--tw-serif);
  font-size: 28px;
  font-weight: 500;
  color: white;
  line-height: 1;
}

.tw-cred-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.tw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.5rem;
}

.tw-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
}

.tw-about-bio {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.tw-about-bio p + p { margin-top: 1rem; }

.tw-about-bio strong {
  color: white;
  font-weight: 500;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.tw-contact { background: var(--tw-cream); }

.tw-contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--tw-warm-light);
  border: 1px solid rgba(196, 154, 108, 0.25);
  border-radius: 28px;
  padding: 4rem 3rem;
}

.tw-contact .tw-section-tag { justify-content: center; }
.tw-contact .tw-section-title { margin: 0 auto 1rem; }
.tw-contact .tw-section-body { margin: 0 auto 2.5rem; max-width: 460px; }

.tw-contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tw-contact-detail {
  font-size: 14px;
  color: var(--tw-mid);
  margin-top: 1.5rem;
}
.tw-contact-detail a {
  color: var(--tw-green) !important;
  text-decoration: none !important;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.tw-footer {
  background: var(--tw-dark);
  color: rgba(255, 255, 255, 0.4);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.tw-footer-logo {
  font-family: var(--tw-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.tw-footer a {
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none !important;
}
.tw-footer a:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes tw-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tw-fade-up { animation: tw-fade-up 0.7s ease both; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tw-nav { padding: 0 1.25rem; }
  .tw-nav-links { display: none; }
  .tw-section { padding: 64px 1.25rem; }
  .tw-hero { grid-template-columns: 1fr; padding-top: 100px; }
  .tw-hero-visual { display: none; }
  .tw-problem-grid { grid-template-columns: 1fr 1fr; }
  .tw-services-header { grid-template-columns: 1fr; gap: 1rem; }
  .tw-services-grid { grid-template-columns: 1fr; }
  .tw-process-steps { grid-template-columns: 1fr; }
  .tw-process-steps::before { display: none; }
  .tw-process-step { text-align: left; padding: 1.5rem 0; border-bottom: 1px solid var(--tw-border); }
  .tw-step-num { margin: 0 0 1rem; }
  .tw-studies-grid { grid-template-columns: 1fr; }
  .tw-about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .tw-cs-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 600px) {
  .tw-problem-grid { grid-template-columns: 1fr; }
  .tw-contact-inner { padding: 2.5rem 1.5rem; }
  .tw-credentials { grid-template-columns: 1fr 1fr; }
  .tw-footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Fluent Form overrides inside contact section ── */
.tw-contact-form {
  text-align: left;
  margin-bottom: 0.5rem;
}
.tw-contact-form .ff-el-input--label label {
  font-family: var(--tw-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--tw-mid) !important;
  margin-bottom: 4px !important;
}
.tw-contact-form .ff-el-form-control {
  font-family: var(--tw-sans) !important;
  font-size: 14px !important;
  background: white !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: var(--tw-dark) !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
}
.tw-contact-form .ff-el-form-control:focus {
  border-color: var(--tw-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(30, 77, 60, 0.08) !important;
}
.tw-contact-form select.ff-el-form-control {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8580' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}
.tw-contact-form .ff_submit_btn_wrapper .ff-btn-submit {
  font-family: var(--tw-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: var(--tw-green) !important;
  color: white !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 13px 32px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
  width: auto !important;
}
.tw-contact-form .ff_submit_btn_wrapper .ff-btn-submit:hover {
  background: var(--tw-green-mid) !important;
  transform: translateY(-1px) !important;
}
.tw-contact-form .ff-message-success {
  background: var(--tw-green-light) !important;
  border: 1px solid rgba(30, 77, 60, 0.2) !important;
  border-radius: 8px !important;
  color: var(--tw-green) !important;
  padding: 1rem 1.25rem !important;
  font-size: 14px !important;
}
.tw-contact-form .error {
  color: #A32D2D !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
