/* Miller & Sons Remodeling — Contractor Clerk demo site */

:root {
  --navy: #1B2A4A;
  --navy-dark: #121c33;
  --orange: #E87722;
  --orange-hover: #c96418;
  --cream: #F7F3EB;
  --white: #ffffff;
  --text: #1B2A4A;
  --muted: #4a5568;
  --border: #e2d9cc;
  --shadow: 0 4px 20px rgba(27, 42, 74, 0.12);
  --radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--orange);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* —— Demo banner —— */
.demo-banner {
  background: #f5e6c8;
  color: var(--navy);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #e8d4a8;
}

.demo-banner a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.demo-banner a:hover {
  color: var(--orange);
}

/* —— Header —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.header-phone {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.header-phone:hover {
  color: var(--orange);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--orange);
}

/* —— Hero —— */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(232, 119, 34, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(247, 243, 235, 0.15), transparent 50%),
    linear-gradient(145deg, #1B2A4A 0%, #2a3f66 45%, #3d2a1a 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.hero-tagline {
  display: inline-block;
  background: rgba(232, 119, 34, 0.25);
  border: 1px solid rgba(232, 119, 34, 0.5);
  color: #ffd4a8;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 auto 1rem;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: #d8dde8;
  line-height: 1.55;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(232, 119, 34, 0.4);
}

.btn:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

/* —— How it works —— */
.how {
  padding: 3.5rem 0;
  background: var(--white);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 1rem;
}

/* —— Audience cards —— */
.audience {
  padding: 0 0 3rem;
  background: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.audience-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audience-card p {
  color: var(--muted);
  font-size: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
}

.badge--home {
  background: var(--orange);
}

/* —— AI Helpers —— */
.helpers {
  padding: 3.5rem 0 4rem;
  background: var(--cream);
}

.tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.tool-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tool-tab img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.tool-tab:hover {
  border-color: var(--orange);
}

.tool-tab[aria-selected="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.tool-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.tool-panel.is-active {
  display: block;
}

.tool-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-panel-header img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.1);
}

.tool-panel-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.tool-panel-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.try-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orange);
}

.embed-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27, 42, 74, 0.1);
  background: #f0ece4;
  min-height: 560px;
}

.pickaxe-embed {
  width: 100%;
  min-height: 560px;
  display: block;
  background: var(--white);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-dark);
  color: #a8b4c8;
  padding: 2.5rem 0;
  font-size: 0.95rem;
  text-align: center;
}

.site-footer strong {
  color: var(--cream);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #ffb877;
}

.footer-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .tool-tab {
    flex: 1 1 calc(50% - 0.6rem);
    justify-content: flex-start;
  }

  .embed-wrap,
  .pickaxe-embed {
    min-height: 560px;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }
}

@media (max-width: 480px) {
  .tool-tab {
    flex: 1 1 100%;
  }

  body {
    font-size: 17px;
  }
}
