/*
Theme Name: Construction Reporting Apps
Theme URI: https://www.constructionreportingapps.com
Author: ConstructionReportingApps.com
Description: Professional construction reporting apps website theme. Steel blue and safety orange. Built for field documentation tools.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: cra-theme
*/

/* ============================================================
   ConstructionReportingApps.com — WordPress Theme
   Steel Blue + Safety Orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── Variables ── */
:root {
  --steel:        #1C2B3A;
  --steel-mid:    #2E4459;
  --steel-light:  #4A6880;
  --steel-pale:   #EAF0F5;
  --orange:       #E07B20;
  --orange-light: #F59A46;
  --orange-pale:  #FEF3E8;
  --cream:        #F7F4EF;
  --white:        #FFFFFF;
  --gray-50:      #F9F8F6;
  --gray-100:     #F0EDE8;
  --gray-200:     #DDD9D2;
  --gray-400:     #9E9890;
  --gray-600:     #6B6560;
  --gray-800:     #3A3630;
  --text:         #1A1816;
  --text-mid:     #3D3A36;
  --text-muted:   #6B6560;
  --border:       rgba(28,43,58,0.1);
  --border-mid:   rgba(28,43,58,0.18);
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --max-width:    1100px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── WordPress Core Fixes ── */
.wp-block-image { margin: 1.5rem 0; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--steel);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p  { color: var(--text-mid); line-height: 1.75; }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--text-mid); line-height: 1.8; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  display: block; margin-bottom: 0.6rem;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-lead { text-align: center; max-width: 620px; margin: 0 auto 3rem; font-size: 1.05rem; color: var(--text-muted); font-weight: 300; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--steel); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #C96A10; color: white; }
.btn-secondary { background: transparent; color: var(--steel); border: 1.5px solid var(--steel); }
.btn-secondary:hover { background: var(--steel); color: white; }
.btn-white { background: white; color: var(--steel); }
.btn-white:hover { background: var(--gray-100); color: var(--steel); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 16px; padding: 16px 32px; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display); font-size: 18px;
  color: var(--steel); text-decoration: none; letter-spacing: -0.02em;
}
.site-logo span { color: var(--orange); }
.site-logo:hover { text-decoration: none; color: var(--steel); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 14px; font-weight: 400; color: var(--text-mid);
  text-decoration: none; transition: color 0.15s;
}
.main-nav a:hover, .main-nav .current-menu-item a, .main-nav .current_page_item a { color: var(--orange); }
.nav-cta-wrap { margin-left: 1rem; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--steel); margin: 5px 0; transition: all 0.2s; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; z-index: 199;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.7rem 0; font-size: 16px;
  color: var(--text-mid); border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  background: var(--steel);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 80px);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,123,32,0.15); border: 1px solid rgba(224,123,32,0.3);
  color: var(--orange-light); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--orange-light); }
.hero .lead { color: rgba(255,255,255,0.72); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
}
.trust-check { color: #4CAF50; font-size: 14px; margin-right: 4px; }
.hero-form-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.hero-form-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.hero-form-card > p { font-size: 13px; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Forms ── */
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-mid); margin-bottom: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: white; outline: none; transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--steel-light); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-consent { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 0.75rem; }
.form-consent a { color: var(--orange); }
.form-success { text-align: center; padding: 1.5rem 0; color: var(--steel); font-weight: 500; }

/* ── Cards ── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 22px; }
.card-icon-steel { background: var(--steel-pale); }
.card-icon-orange { background: var(--orange-pale); }
.card h4 { margin-bottom: 0.5rem; }
.card p { font-size: 14px; }

/* ── Feature Rows ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual { background: var(--gray-100); border-radius: var(--radius-lg); padding: 2rem; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.feature-tag { display: inline-block; background: var(--orange-pale); color: var(--orange); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 0.75rem; }
.feature-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding: 0; }
.feature-list li { font-size: 14px; color: var(--text-mid); display: flex; align-items: center; gap: 8px; list-style: none; }
.feature-list li::before { content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ── Problem Grid ── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.problem-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; border-left: 3px solid var(--orange); }
.problem-item h4 { font-size: 14px; margin-bottom: 0.3rem; }
.problem-item p { font-size: 13px; }

/* ── Stats Bar ── */
.stats-bar { background: var(--steel-mid); padding: 3rem 0; }
.stats-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.8rem; color: white; display: block; letter-spacing: -0.03em; }
.stat-num em { color: var(--orange-light); font-style: normal; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card a { text-decoration: none; color: inherit; display: block; }
.blog-card-img { height: 180px; background: var(--steel); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-cat { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.blog-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--steel); margin-bottom: 0.5rem; letter-spacing: 0; }
.blog-card p { font-size: 13px; color: var(--text-muted); }
.blog-meta { font-size: 12px; color: var(--text-muted); margin-top: 1rem; display: flex; gap: 1rem; }

/* ── Single Post ── */
.post-header { background: var(--steel); padding: 4rem 0 3rem; }
.post-header h1 { color: white; max-width: 760px; }
.post-meta-bar { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.post-meta-bar span { font-size: 13px; color: rgba(255,255,255,0.6); }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.post-content { max-width: 720px; }
.post-content h2 { margin: 2rem 0 1rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; color: var(--steel); }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; color: var(--text-mid); font-size: 15px; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.toc { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; }
.toc h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }
.toc ol { margin-left: 1rem; }
.toc li { font-size: 14px; margin-bottom: 0.4rem; }
.toc a { color: var(--steel); }
.featured-snippet { background: var(--orange-pale); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.featured-snippet p { font-size: 15px; font-weight: 400; margin: 0; }
.post-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-card h4 { font-size: 14px; margin-bottom: 0.75rem; }
.author-box { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--steel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; font-family: var(--font-display); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 15px; color: var(--steel); margin-bottom: 0.5rem; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { font-size: 14px; color: var(--text-mid); line-height: 1.7; display: none; }
.faq-a.open { display: block; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Product Page ── */
.product-card { background: white; border-radius: var(--radius-lg); border: 2px solid var(--border); padding: 2rem; max-width: 460px; box-shadow: var(--shadow-lg); }
.price-display { margin: 1.5rem 0; }
.price-amount { font-family: var(--font-display); font-size: 3rem; color: var(--steel); }
.price-period { font-size: 14px; color: var(--text-muted); }
.price-note { font-size: 13px; color: var(--orange); font-weight: 500; }
.product-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; }
.product-features li { font-size: 14px; color: var(--text-mid); display: flex; gap: 8px; list-style: none; }
.product-features li::before { content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0; }
.stripe-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 0.75rem; justify-content: center; }
.guarantee-box { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; gap: 10px; align-items: flex-start; margin-top: 1rem; }
.guarantee-box p { font-size: 13px; margin: 0; }

/* ── Lead Magnet ── */
.lead-magnet { background: linear-gradient(135deg, var(--steel) 0%, var(--steel-mid) 100%); padding: 5rem 0; }
.lead-magnet-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.lead-magnet h2 { color: white; }
.lead-magnet .lead { color: rgba(255,255,255,0.7); }
.checklist-preview { background: white; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.checklist-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.6rem; font-size: 13px; color: var(--text-mid); }
.checklist-item::before { content: '☐'; font-size: 16px; color: var(--orange); flex-shrink: 0; }

/* ── CTA Band ── */
.cta-band { background: var(--orange); padding: 4rem 0; text-align: center; }
.cta-band h2 { color: white; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 2rem; font-weight: 300; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-method { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-method-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--steel-pale); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-method h4 { font-size: 14px; margin-bottom: 2px; }
.contact-method p { font-size: 13px; margin: 0; }

/* ── Legal ── */
.legal-content { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal-content p { margin-bottom: 1rem; font-size: 15px; }
.legal-content ul { margin: 0.75rem 0 1rem 1.5rem; list-style: disc; }
.legal-content li { font-size: 15px; color: var(--text-mid); margin-bottom: 0.4rem; }

/* ── Footer ── */
.site-footer { background: var(--gray-800); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 0.75rem; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.4); }

/* ── Badges ── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-orange { background: var(--orange-pale); color: var(--orange); }
.badge-steel { background: var(--steel-pale); color: var(--steel); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.55s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 480px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row, .post-layout { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .contact-grid, .lead-magnet-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
