/* Calgary Mold Inspection — clean, mobile-first */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1d21;
  --muted: #5c6570;
  --accent: #0d6e6e;
  --accent-dark: #0a5555;
  --border: #e2e6ea;
  --warn: #8b4513;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.phone-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--accent-dark); }

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a.active { color: var(--accent); }

/* Hero */
.hero {
  background: var(--card);
  padding: 2.2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 980px;
}
.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 520px;
}
.hero-grid > .hero-image {
  flex: 0 0 320px;
  max-width: 320px;
  width: 320px;
}
.hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.hero .support {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: 36rem;
}
.hero .closing {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.35rem;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}
/* Space between CTAs and hero image on secondary pages (stacked layout) */
.hero > .container > .hero-actions + .hero-image {
  margin-top: 2rem;
  max-width: 100%;
  width: 100%;
  flex: none;
}
.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
}
.btn-secondary:hover { background: #e8f5f5; }

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-left: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 820px) {
  .hero-grid {
    flex-direction: column !important;
    max-width: 100%;
  }
  .hero-copy {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .hero-image {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    order: -1;
  }
}

/* Content sections */
section { padding: 2.25rem 0; }
section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}
section p { margin-bottom: 1rem; color: var(--text); }
.muted { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  nav { width: 100%; }
}

.photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.photo-frame img { width: 100%; }

.checklist {
  list-style: none;
  margin: 1rem 0 1.25rem;
}
.checklist li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.1rem; }
.cta-band .phone-btn {
  background: #fff;
  color: var(--accent) !important;
}
.cta-band .phone-btn:hover { background: #f0f0f0; }

/* Footer */
.site-footer {
  background: #1a1d21;
  color: #c5cad0;
  padding: 2rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer a { color: #9fd4d4; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #8a929a;
}

/* Contact form */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}
button[type="submit"]:hover { background: var(--accent-dark); }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
