/* ADU Project Estimator — shared styles
   Mobile-first. One accent color. Large, readable numbers. */

:root {
  --bg: #ffffff;
  --surface: #f6f5f2;
  --surface-2: #eceae4;
  --text: #1d1f21;
  --muted: #5d6166;
  --border: #dedbd3;
  --accent: #0f766e;        /* deep teal */
  --accent-dark: #115e59;
  --accent-soft: #e6f4f2;
  --success: #2f7d32;
  --radius: 12px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 40px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
}

.logo-text { white-space: nowrap; }

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.site-nav.open { display: block; }

.site-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--surface-2);
}

.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover { color: var(--accent); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    padding: 0;
    border: none;
    gap: 24px;
  }
  .site-nav a {
    padding: 0;
    border: none;
    font-size: 15px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

@media (min-width: 760px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 44px; }
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }

.section h2 {
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------- Tool grid ---------- */
.tool-group { margin-bottom: 32px; }

.tool-group h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

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

@media (min-width: 560px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

.tool-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
  color: var(--text);
}

.tool-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.tool-card h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.tool-card.soon { opacity: 0.6; }

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Live calculator card: "Click to use" button */
.badge.live {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #134e4a;
  padding: 1px 10px;
}

a.tool-card:hover .badge.live {
  background: #cce9e5;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Text pages (about, privacy, terms, contact) ---------- */
.page {
  padding: 40px 0 56px;
}

.page .container { max-width: 760px; }

.page h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.page h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

.page p,
.page li { color: #33373b; }

.page ul { padding-left: 22px; }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.contact-box .email {
  font-size: 20px;
  font-weight: 700;
  word-break: break-all;
}

/* ---------- Calculator building blocks (used by tool pages) ---------- */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.result {
  margin-top: 20px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.result .big {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.result .label {
  color: var(--muted);
  font-size: 15px;
}

/* Ad slot placeholder (filled once AdSense is approved) */
.ad-slot {
  margin: 28px 0;
  min-height: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 15px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover { color: var(--accent); }

/* Link that looks like plain text (e.g. Cool Apps LLC) */
a.plain-link,
a.plain-link:hover,
a.plain-link:visited {
  color: var(--text);
  text-decoration: none;
}

.disclaimer {
  font-size: 13px;
  margin: 12px 0 0;
}
