/*
Theme Name: Inflect Advisory
Theme URI: https://inflectadvisory.com.au
Author: Inflect Advisory
Description: Professional consulting theme for Inflect Advisory
Version: 1.0
*/

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #1D9E75;
  --teal-light:  #E1F5EE;
  --teal-mid:    #5DCAA5;
  --dark:        #141414;
  --mid:         #444444;
  --muted:       #777777;
  --light:       #F7F7F5;
  --rule:        #E4E4DC;
  --white:       #ffffff;
  --radius:      6px;
  --max:         1080px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--mid);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.25;
}

/* ── Layout ───────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 80px 0; }
section:first-of-type { padding-top: 0; }

/* ── Header ───────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.site-logo span {
  color: var(--teal);
}

.site-logo:hover { text-decoration: none; }

/* ── Nav ──────────────────────────────────────── */
#primary-navigation ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

#primary-navigation a {
  font-size: 0.875rem;
  color: var(--mid);
  font-weight: 500;
  transition: color 0.15s;
}

#primary-navigation a:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-cta a {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  transition: background 0.15s !important;
}

.nav-cta a:hover {
  background: #178a63 !important;
  text-decoration: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────── */
#hero {
  background: var(--dark);
  padding: 100px 0 96px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,158,117,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 20px;
}

#hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  max-width: 680px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  line-height: 1.15;
}

#hero h1 em {
  color: var(--teal-mid);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: #178a63;
  text-decoration: none;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  text-decoration: none;
}

.hero-trust {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.trust-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Problem ──────────────────────────────────── */
#problem {
  background: var(--light);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 640px;
  color: var(--mid);
  line-height: 1.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}

.problem-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.problem-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Services ─────────────────────────────────── */
#services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.service-card:hover { border-color: var(--teal-mid); }

.service-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover .service-bar { opacity: 1; }

/* ── Why Me ───────────────────────────────────── */
#why {
  background: var(--dark);
  color: var(--white);
}

#why .section-eyebrow { color: var(--teal-mid); }
#why .section-heading { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.why-copy {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.why-copy p + p { margin-top: 16px; }

.credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credential {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cred-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.credential h4 {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 600;
}

.credential p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── Result ───────────────────────────────────── */
#result { background: var(--teal-light); }

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

.result-quote {
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.result-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--teal);
  line-height: 0.5;
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.result-detail {
  font-size: 0.95rem;
  color: var(--mid);
  margin-top: 16px;
  line-height: 1.7;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-stat {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--muted);
}

/* ── Engagement ───────────────────────────────── */
#engagement { background: var(--white); }

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.engagement-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.engagement-card.featured {
  border-color: var(--teal);
  border-width: 2px;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.engagement-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.engagement-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.engagement-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.engagement-price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.engagement-features {
  list-style: none;
  margin-bottom: 28px;
}

.engagement-features li {
  font-size: 0.875rem;
  color: var(--mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.engagement-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.btn-outline {
  display: block;
  text-align: center;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.btn-solid {
  display: block;
  text-align: center;
  background: var(--teal);
  color: var(--white);
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-solid:hover {
  background: #178a63;
  color: var(--white);
  text-decoration: none;
}

/* ── Contact ──────────────────────────────────── */
#contact { background: var(--light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--mid);
  align-items: center;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.form-submit:hover { background: #178a63; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* WordPress block editor content styles */
.entry-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 28px;
}

.entry-content h1,
.entry-content h2 { margin-bottom: 16px; }

.entry-content p { margin-bottom: 16px; }

/* ── Footer ───────────────────────────────────── */
#site-footer {
  background: var(--dark);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .site-logo {
  color: var(--white);
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
  max-width: 260px;
  line-height: 1.6;
}

#footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

#footer-navigation a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

#footer-navigation a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  margin-left: 20px;
}

.footer-legal a:hover { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ── WP Admin Bar ─────────────────────────────── */
.admin-bar #site-header { top: 32px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .problem-grid,
  .services-grid,
  .engagement-grid { grid-template-columns: 1fr 1fr; }

  .why-grid,
  .result-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }

  .problem-grid,
  .services-grid,
  .engagement-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  #primary-navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 16px 28px;
  }

  #primary-navigation.open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 0; }
  #primary-navigation li { border-bottom: 1px solid var(--rule); }
  #primary-navigation a { display: block; padding: 12px 0; }

  .nav-toggle { display: flex; }

  .hero-trust { gap: 24px; }

  .contact-form { padding: 24px; }
}
