/*
Theme Name: EZ General Construction
Theme URI: https://Ezgeneralconstructionllc.com
Author: EZ General Construction LLC
Author URI: https://Ezgeneralconstructionllc.com
Description: Professional WordPress theme for EZ General Construction LLC.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ez-general
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

:root {
  --navy: #0a1628;
  --navy2: #112240;
  --red: #c0392b;
  --red2: #e74c3c;
  --gold: #f0a500;
  --white: #ffffff;
  --light: #f5f6fa;
  --gray: #6c757d;
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: var(--light); color: #222; overflow-x: hidden; }

.top-bar { background: var(--red); color: var(--white); text-align: center; padding: 8px 20px; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.top-bar a { color: #fff; text-decoration: none; }

nav { background: var(--navy); position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.nav-brand { color: var(--white); font-family: 'Oswald', sans-serif; font-size: 18px; line-height: 1.2; }
.nav-brand span { color: var(--gold); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 9px 22px; border-radius: 4px; transition: background 0.3s !important; }
.nav-cta:hover { background: var(--red2) !important; }
.nav-cta::after { display: none !important; }

.hero { min-height: 90vh; background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 60%, #0a1628 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; max-width: 750px; }
.hero-logo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 0 40px rgba(240,165,0,0.3); margin-bottom: 28px; animation: floatLogo 4s ease-in-out infinite; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(32px, 6vw, 58px); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.hero h1 span { color: var(--gold); }
.hero .subtitle { color: rgba(255,255,255,0.75); font-size: 18px; margin-bottom: 6px; letter-spacing: 1px; }
.hero .license { display: inline-block; background: rgba(240,165,0,0.15); border: 1px solid var(--gold); color: var(--gold); padding: 6px 18px; border-radius: 20px; font-size: 13px; margin: 14px 0 30px; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary { background: var(--red); color: var(--white); padding: 14px 36px; border-radius: 4px; text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; box-shadow: 0 4px 18px rgba(192,57,43,0.4); display: inline-block; }
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(192,57,43,0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--gold); padding: 12px 32px; border-radius: 4px; text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; display: inline-block; }
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 4vw, 40px); color: var(--navy); text-transform: uppercase; letter-spacing: 2px; }
.section-title .divider { width: 70px; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); margin: 12px auto 0; border-radius: 2px; }
.section-title p { color: var(--gray); margin-top: 12px; font-size: 16px; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
.about-badge { position: absolute; bottom: 20px; right: 20px; background: var(--gold); color: var(--navy); font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 4px; text-align: center; line-height: 1.3; }
.about-text h3 { font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--navy); margin-bottom: 16px; }
.about-text h3 span { color: var(--red); }
.about-text p { color: #555; line-height: 1.8; margin-bottom: 16px; font-size: 15px; }
.about-stats { display: flex; gap: 28px; margin-top: 28px; }
.stat { text-align: center; background: var(--light); padding: 18px 24px; border-radius: 8px; border-top: 3px solid var(--red); flex: 1; }
.stat strong { display: block; font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--navy); }
.stat span { font-size: 13px; color: var(--gray); }

.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: 8px; padding: 32px 24px; text-align: center; box-shadow: 0 2px 16px rgba(0,0,0,0.07); transition: all 0.35s ease; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-bottom-color: var(--red); }
.service-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--navy), #1a3a5c); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; transition: all 0.35s; }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--red), var(--red2)); }
.service-card h3 { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }

.gallery { background: var(--navy); }
.gallery .section-title h2 { color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; background: var(--navy2); aspect-ratio: 4/3; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.85), transparent); display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity 0.35s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 1px; }

.payment { background: var(--white); }
.payment-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pay-card { background: var(--light); border: 2px solid #e0e0e0; border-radius: 10px; padding: 22px 40px; text-align: center; font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--navy); transition: all 0.3s; letter-spacing: 1px; }
.pay-card:hover { border-color: var(--gold); background: var(--navy); color: var(--gold); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.free-estimate-banner { margin-top: 52px; background: linear-gradient(135deg, var(--red), #8b1a1a); border-radius: 12px; padding: 48px 32px; text-align: center; color: var(--white); box-shadow: 0 8px 32px rgba(192,57,43,0.3); }
.free-estimate-banner h3 { font-family: 'Oswald', sans-serif; font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; letter-spacing: 2px; }
.free-estimate-banner p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }

.contact { background: var(--navy); }
.contact .section-title h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-section h3 { font-family: 'Oswald', sans-serif; font-size: 26px; color: var(--gold); margin-bottom: 24px; letter-spacing: 1px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon { width: 46px; height: 46px; background: rgba(240,165,0,0.15); border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-text { color: rgba(255,255,255,0.8); }
.contact-item-text strong { color: var(--white); display: block; margin-bottom: 3px; font-size: 14px; }
.contact-item-text a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; }
.contact-item-text a:hover { color: var(--gold); }

.contact-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 36px; }
.contact-form h3 { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--gold); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; color: var(--white); padding: 12px 16px; font-family: 'Open Sans', sans-serif; font-size: 14px; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 110px; resize: vertical; }
.form-group select option { background: var(--navy); }
.form-message { padding: 14px 18px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; display: none; }
.form-message.success { background: rgba(39,174,96,0.15); border: 1px solid #27ae60; color: #27ae60; display: block; }
.form-message.error { background: rgba(231,76,60,0.15); border: 1px solid var(--red2); color: var(--red2); display: block; }
.btn-loading { opacity: 0.7; pointer-events: none; }

footer { background: #040c1a; color: rgba(255,255,255,0.7); padding: 40px 24px 24px; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.footer-logo img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.footer-logo span { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--white); letter-spacing: 1px; }
.footer-logo span em { color: var(--gold); font-style: normal; }
.footer-divider { width: 60px; height: 2px; background: var(--red); margin: 18px auto; border-radius: 2px; }
footer p { font-size: 13px; line-height: 1.8; }
.footer-copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  nav { position: relative; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
}

@media (max-width: 600px) {
  .hero-logo { width: 120px; height: 120px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 12px; }
  .contact-form { padding: 24px 18px; }
}
