/*
Theme Name: Johnson County Trusted Contractors
Theme URI: https://johnsoncountytrustedcontractors.com
Author: YourPal Texas
Description: Local contractor directory for Johnson County, Texas. Custom theme with contractor profiles, project galleries, lead management, and verification badge system.
Version: 3.1.2
Text Domain: jctc
*/

:root {
  --primary: #1b4d3e;
  --primary-dark: #0f2f26;
  --primary-light: #2a7a5f;
  --accent: #d4841c;
  --accent-hover: #b8710f;
  --light-bg: #f5f7f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #dde5dd;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--primary-dark); color: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header-top { background: var(--primary); padding: 8px 0; font-size: 14px; text-align: center; }
.header-top a { color: var(--white); font-weight: 600; }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.site-logo { font-size: 20px; font-weight: 700; color: var(--white); }
.site-logo span { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 15px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 5px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s; border: none; text-align: center; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,132,28,0.4); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #f0f0f0; color: var(--primary); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* Navigation */
.main-nav { background: rgba(0,0,0,0.15); }
.main-nav ul { list-style: none; display: flex; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0; }
.main-nav li a { display: block; color: var(--white); padding: 12px 18px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.3s; }
.main-nav li a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* Hero */
.hero {
    background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url('http://johnsoncountytrustedcontractors.com/wp-content/uploads/2026/06/JCTC-homepage-banner-e1782717635481.png');
    background-size: cover;
    background-position: center 60% 20%;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 240px 0;
    text-align: center;
}

background-size: cover;
background-position: center;
background-repeat: no-repeat; color: var(--white); padding: 80px 0; text-align: center; }
.hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 24px; line-height: 1.1; text-shadow: 0 3px 8px rgba(0,0,0,.45); }
.hero p { font-size: 22px; opacity: 1; max-width: 760px; margin: 0 auto 35px; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px; }

/* Sections */
.section { padding: 60px 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.section-dark .section-title h2 { color: var(--white); }
.section-title p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: var(--white); padding: 30px 20px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; transition: all 0.3s; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-card .icon { font-size: 40px; margin-bottom: 12px; }
.category-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
.category-card p { font-size: 13px; color: var(--text-light); }

/* Contractor Cards */
.contractor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.contractor-card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; transition: all 0.3s; }
.contractor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contractor-card-header { padding: 25px; display: flex; align-items: center; gap: 15px; }
.contractor-logo { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--light-bg); }
.contractor-card-info h3 { font-size: 18px; color: var(--primary); }
.contractor-card-info p { font-size: 13px; color: var(--text-light); }
.contractor-card-body { padding: 0 25px 15px; }
.contractor-card-footer { padding: 15px 25px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-preferred { background: #e8f5e9; color: #2e7d32; }
.badge-verified { background: #e3f2fd; color: #1565c0; }
.badge-emergency { background: #fff3e0; color: #e65100; }
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* Forms */
.form-section { background: var(--white); padding: 35px; border-radius: 10px; box-shadow: var(--shadow); max-width: 550px; margin: 0 auto; }
.form-section h2 { text-align: center; margin-bottom: 5px; color: var(--primary); font-size: 24px; }
.form-section .form-subtitle { text-align: center; color: var(--text-light); margin-bottom: 20px; font-size: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 5px; font-size: 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); outline: none; }
.form-group textarea { height: 100px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; background: var(--accent); color: var(--white); border: none; border-radius: 5px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.form-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.form-note { text-align: center; margin-top: 10px; font-size: 13px; color: var(--text-light); }

/* Contractor Profile */
.profile-header { background: var(--primary-dark); color: var(--white); padding: 40px 0; }
.profile-header-inner { display: flex; align-items: center; gap: 25px; }
.profile-logo { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.1); }
.profile-title h1 { font-size: 30px; margin-bottom: 5px; }
.profile-title p { opacity: 0.8; }
.profile-content { display: grid; grid-template-columns: 1fr 380px; gap: 30px; padding: 40px 0; }
.profile-main { }
.profile-sidebar { }
.profile-section { margin-bottom: 30px; }
.profile-section h2 { font-size: 22px; color: var(--primary); margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* Project Gallery */
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.project-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.project-card img { width: 100%; height: 180px; object-fit: cover; }
.project-card-body { padding: 15px; }
.project-card-body h3 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
.project-card-body p { font-size: 13px; color: var(--text-light); }

/* Service Areas */
.service-areas-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-area-tag { background: var(--light-bg); padding: 6px 14px; border-radius: 20px; font-size: 14px; color: var(--primary); }

/* For Contractors Section */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.benefit-card { text-align: center; padding: 25px; }
.benefit-card .icon { font-size: 36px; margin-bottom: 10px; }
.benefit-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--text-light); }

/* Resource Center */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.resource-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); transition: all 0.3s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.resource-card h3 { color: var(--primary); margin-bottom: 10px; }
.resource-card p { color: var(--text-light); font-size: 14px; margin-bottom: 15px; }

/* Verification Badge Preview */
.badge-preview { background: var(--white); border: 2px solid var(--primary); border-radius: 10px; padding: 20px; text-align: center; max-width: 300px; margin: 20px auto; }
.badge-preview img { max-width: 150px; margin-bottom: 10px; }
.badge-preview p { font-size: 13px; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--primary-dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col h3 { font-size: 16px; margin-bottom: 15px; color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .header-main { padding: 10px 15px; }
  .mobile-menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.active { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); }
  .main-nav.active ul { flex-direction: column; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
  .profile-content { grid-template-columns: 1fr; }
  .profile-header-inner { flex-direction: column; text-align: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .form-section { margin: 0 15px; padding: 25px; }
}
