/*
Theme Name: AsBuiltDocs
Theme URI: https://asbuiltdocs.com
Author: AsBuiltDocs
Author URI: https://asbuiltdocs.com
Description: Professional theme for AsBuiltDocs - AI-powered asbuilt documentation for Australian construction
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asbuiltdocs
*/

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #1a1a18;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0F6E56; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a18;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; color: #444; }
p:last-child { margin-bottom: 0; }

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section.tight { padding: 52px 0; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: #0F6E56;
  color: #fff;
  border-color: #0F6E56;
}
.btn--primary:hover {
  background: #085041;
  border-color: #085041;
  text-decoration: none;
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: #0F6E56;
  border-color: #0F6E56;
}
.btn--outline:hover {
  background: #0F6E56;
  color: #fff;
  text-decoration: none;
}
.btn--white {
  background: #fff;
  color: #0F6E56;
  border-color: #fff;
}
.btn--white:hover {
  background: #E1F5EE;
  text-decoration: none;
  color: #085041;
}
.btn--lg { padding: 17px 36px; font-size: 1.1rem; }

/* ============================================
   NAVIGATION
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e2;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F6E56;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: #1a1a18; }
.site-logo:hover { text-decoration: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  transition: color 0.15s;
}
.nav-menu a:hover { color: #0F6E56; text-decoration: none; }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a18;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   HERO
============================================ */
.hero {
  background: #0F6E56;
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #9FE1CB;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: #9FE1CB;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 5px 13px;
  border-radius: 20px;
}

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  background: #f8f8f6;
  border-top: 1px solid #e8e8e2;
  border-bottom: 1px solid #e8e8e2;
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid #e8e8e2;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0F6E56;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: #666; }

/* ============================================
   HOW IT WORKS
============================================ */
.how-it-works { background: #fff; }
.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F6E56;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #1a1a18;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 560px;
  line-height: 1.65;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.step-card {
  background: #fff;
  border: 1px solid #e8e8e2;
  border-radius: 12px;
  padding: 28px 22px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  background: #0F6E56;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; color: #1a1a18; }
.step-card p { font-size: 0.9rem; color: #555; line-height: 1.55; margin: 0; }

/* ============================================
   FEATURES
============================================ */
.features { background: #f8f8f6; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e8e8e2;
  border-radius: 12px;
  padding: 28px 24px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: #E1F5EE;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; color: #1a1a18; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: #555; line-height: 1.55; margin: 0; }

/* ============================================
   APP DEMO SECTION
============================================ */
.app-demo { background: #fff; }
.app-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-demo-content .section-sub { max-width: 100%; }
.demo-benefits { margin-top: 28px; }
.demo-benefit {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.demo-benefit-icon {
  width: 28px; height: 28px;
  background: #E1F5EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.demo-benefit-icon svg { width: 14px; height: 14px; }
.demo-benefit-text h4 { font-size: 0.95rem; color: #1a1a18; margin-bottom: 2px; }
.demo-benefit-text p { font-size: 0.85rem; color: #555; margin: 0; line-height: 1.5; }

.app-frame {
  background: #1a1a18;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.app-frame-inner {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.app-topbar {
  background: #0F6E56;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-topbar-logo { color: #fff; font-size: 0.95rem; font-weight: 800; }
.app-topbar-sub { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.app-body { padding: 18px; }
.app-project-badge {
  background: #E1F5EE;
  color: #085041;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  display: inline-block;
}
.app-upload-zone {
  border: 2px dashed #D3D1C7;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-bottom: 14px;
  cursor: pointer;
}
.app-upload-zone p { font-size: 0.8rem; color: #888; margin: 0; }
.app-upload-zone .upload-icon { font-size: 1.8rem; margin-bottom: 6px; }
.app-field {
  background: #f8f8f6;
  border: 1px solid #e8e8e2;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 10px;
  width: 100%;
}
.app-analyse-btn {
  background: #0F6E56;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.app-report-preview {
  margin-top: 14px;
  border: 1px solid #e8e8e2;
  border-radius: 8px;
  overflow: hidden;
}
.app-report-header {
  background: #E1F5EE;
  padding: 8px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #085041;
}
.app-report-body { padding: 12px 13px; }
.app-report-item {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.4;
}
.app-report-item:last-child { margin-bottom: 0; }
.report-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0F6E56;
  flex-shrink: 0;
  margin-top: 5px;
}
.report-dot.red { background: #A32D2D; }

/* ============================================
   MARKET OPPORTUNITY
============================================ */
.market { background: #0F6E56; color: #fff; padding: 80px 0; }
.market .section-label { color: #9FE1CB; }
.market .section-title { color: #fff; }
.market .section-sub { color: rgba(255,255,255,0.8); max-width: 680px; }
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.market-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px 22px;
}
.market-card h3 { color: #9FE1CB; font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.market-card p { color: rgba(255,255,255,0.8); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ============================================
   PRICING
============================================ */
.pricing { background: #f8f8f6; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  background: #fff;
  border: 1px solid #e8e8e2;
  border-radius: 14px;
  overflow: hidden;
}
.price-card.featured { border: 2px solid #0F6E56; }
.price-card-head { padding: 24px 24px 20px; }
.price-card.featured .price-card-head { background: #0F6E56; }
.price-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-bottom: 8px;
}
.price-card.featured .price-name { color: #9FE1CB; }
.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a18;
  line-height: 1;
  margin-bottom: 4px;
}
.price-card.featured .price-amount { color: #fff; }
.price-period { font-size: 0.82rem; color: #888; }
.price-card.featured .price-period { color: rgba(255,255,255,0.7); }
.price-card-body { padding: 20px 24px 24px; }
.price-desc { font-size: 0.88rem; color: #555; margin-bottom: 16px; }
.price-features { list-style: none; }
.price-features li {
  font-size: 0.88rem;
  color: #444;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0ec;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-features li:last-child { border-bottom: none; }
.check-icon {
  width: 16px; height: 16px;
  background: #E1F5EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-cta { margin-top: 20px; width: 100%; text-align: center; display: block; }

/* ============================================
   WAITLIST / CTA SECTION
============================================ */
.waitlist { background: #fff; }
.waitlist-inner {
  background: #0F6E56;
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
}
.waitlist-inner h2 { color: #fff; margin-bottom: 14px; }
.waitlist-inner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
}
.waitlist-form input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.waitlist-note { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ============================================
   APP CTA BANNER
============================================ */
.app-banner {
  background: #1a1a18;
  padding: 40px 0;
}
.app-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.app-banner h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.app-banner p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }
.app-banner-btns { display: flex; gap: 12px; }
.app-link {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}
.app-link:hover { background: rgba(255,255,255,0.2); text-decoration: none; color: #fff; }
.app-link.primary-app {
  background: #0F6E56;
  border-color: #0F6E56;
}
.app-link.primary-app:hover { background: #085041; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #1a1a18;
  color: rgba(255,255,255,0.65);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { color: #9FE1CB; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-top: 12px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: #9FE1CB; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .app-demo-inner { grid-template-columns: 1fr; }
  .app-frame { max-width: 380px; margin: 0 auto; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 48px auto 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e2;
    gap: 18px;
    z-index: 99;
  }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .app-banner-inner { flex-direction: column; text-align: center; }
  .waitlist-form { flex-direction: column; }
  .waitlist-inner { padding: 40px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
