/*
Theme Name: Havens Construction
Theme URI: https://chadhavens.com
Author: Havens Construction
Author URI: https://chadhavens.com
Description: Custom theme for Havens Construction - Licensed and Bonded in NJ and PA
Version: 1.0
Text Domain: havens
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #1A1A1A; background: #F5F2EC; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header { display: flex; align-items: center; padding: 30px 45px; }
.site-header.header-dark { background: #1A1A1A; }
.logo-box { border: 1.5px solid #fff; padding: 12px 20px; margin-right: 50px; }
.logo-box span { font-family: 'Times New Roman', Times, serif; font-size: 18px; font-weight: 400; letter-spacing: 0.35em; color: #fff; }
.main-nav { display: flex; gap: 40px; }
.main-nav a { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.current { color: #fff; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

.hero { background: #8FAAB8; padding: 35px 45px 60px; }
.hero .site-header { padding: 0; margin-bottom: 50px; }
.hero-content { max-width: 750px; }
.hero h1 { font-family: 'Times New Roman', Times, serif; font-size: 58px; font-weight: 400; font-style: italic; line-height: 1.12; color: #fff; margin-bottom: 20px; }
.hero p { font-size: 15px; line-height: 1.7; color: #fff; max-width: 620px; }

.page-title-section { background: #1A1A1A; padding: 0 45px 50px; }
.page-title-section h1 { font-family: 'Times New Roman', Times, serif; font-size: 48px; font-weight: 400; font-style: italic; color: #fff; }
.page-title-section p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 12px; }

.section-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #999; margin-bottom: 16px; }

.commitment { padding: 80px 45px; background: #F5F2EC; }
.commitment-inner { max-width: 1100px; margin: 0 auto; }
.commitment-intro { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.commitment-intro h2 { font-family: 'Times New Roman', Times, serif; font-size: 21px; font-weight: 400; line-height: 1.65; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; }
.pillar { text-align: center; }
.pillar-num { font-family: 'Times New Roman', Times, serif; font-size: 42px; color: #BBB; margin-bottom: 12px; }
.pillar h3 { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.pillar p { font-size: 13px; color: #666; line-height: 1.6; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #1A1A1A; }
.stat { padding: 40px 30px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border: none; }
.stat-num { font-family: 'Times New Roman', Times, serif; font-size: 34px; color: #fff; margin-bottom: 5px; }
.stat-label { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.services { display: grid; grid-template-columns: 1fr 1fr; }
.service { position: relative; min-height: 450px; display: flex; flex-direction: column; justify-content: flex-end; padding: 35px; }
.service-bg { position: absolute; inset: 0; }
.service-bg img { width: 100%; height: 100%; object-fit: cover; }
.service-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); }
.service-content { position: relative; z-index: 2; }
.service h2 { font-family: 'Times New Roman', Times, serif; font-size: 32px; color: #fff; margin-bottom: 12px; line-height: 1.2; }
.service p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.65; max-width: 320px; margin-bottom: 10px; }
.service-tags { font-size: 11px; color: rgba(255,255,255,0.4); }

.about { display: grid; grid-template-columns: 1fr 1fr; background: #EAE5DC; }
.about-content { padding: 70px 50px; display: flex; flex-direction: column; justify-content: center; }
.about h2 { font-family: 'Times New Roman', Times, serif; font-size: 30px; line-height: 1.3; margin-bottom: 20px; }
.about p { font-size: 14px; color: #555; line-height: 1.75; margin-bottom: 14px; }
.credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cred { font-size: 9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.2); color: #666; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.contact { padding: 80px 45px; background: #F5F2EC; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 35px; }
.contact-header h2 { font-family: 'Times New Roman', Times, serif; font-size: 30px; margin-bottom: 10px; }
.contact-header p { font-size: 14px; color: #666; line-height: 1.6; }
.contact-form { background: #fff; padding: 35px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #666; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { font-family: Helvetica, Arial, sans-serif; font-size: 14px; padding: 12px; border: 1px solid #DDD; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1A1A1A; }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: #fff; }
.btn { display: block; width: 100%; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 15px; background: #1A1A1A; color: #fff; border: none; cursor: pointer; }
.btn:hover { background: #333; }

/* Contact Form 7 Styling */
.wpcf7-form p { margin-bottom: 14px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea { font-family: Helvetica, Arial, sans-serif; font-size: 14px; padding: 12px; border: 1px solid #DDD; background: #fff; width: 100%; box-sizing: border-box; }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline: none; border-color: #1A1A1A; }
.wpcf7-form textarea { min-height: 90px; resize: vertical; }
.wpcf7-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: #fff; }
.wpcf7-form input[type="submit"] { display: block; width: 100%; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 15px; background: #1A1A1A; color: #fff; border: none; cursor: pointer; margin-top: 10px; }
.wpcf7-form input[type="submit"]:hover { background: #333; }
.wpcf7-form .wpcf7-response-output { margin: 15px 0 0 0; padding: 10px; }
.wpcf7-form .wpcf7-not-valid-tip { color: #c00; font-size: 12px; }

.gallery { padding: 45px; background: #F5F2EC; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.site-footer { background: #000; color: #fff; padding: 50px 45px 28px; }

.projects-section { padding: 80px 45px; background: #F5F2EC; }
.projects-inner { max-width: 1100px; margin: 0 auto; }
.projects-inner .section-label { text-align: center; }
.projects-title { font-family: 'Times New Roman', Times, serif; font-size: 30px; font-weight: 400; text-align: center; margin-bottom: 40px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-item { aspect-ratio: 4/3; overflow: hidden; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-item:hover img { transform: scale(1.05); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Times New Roman', Times, serif; font-size: 16px; letter-spacing: 0.3em; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-top: 14px; }
.footer-col h4 { font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-col a:hover { color: #fff; }
.footer-col .phone { font-size: 13px; color: #fff; display: block; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 10px; color: rgba(255,255,255,0.35); }

@media (max-width: 1024px) {
    .pillars { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .services, .about { grid-template-columns: 1fr; }
    .about-img { min-height: 300px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { padding: 20px 24px; flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
    .main-nav.active { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hero { padding: 24px 24px 40px; }
    .hero .site-header { margin-bottom: 40px; }
    .hero h1 { font-size: 36px; }
    .page-title-section { padding: 0 24px 40px; }
    .page-title-section h1 { font-size: 36px; }
    .commitment { padding: 50px 24px; }
    .pillars { grid-template-columns: 1fr; gap: 40px; }
    .stat { padding: 30px 20px; }
    .stat-num { font-size: 28px; }
    .service { min-height: 350px; padding: 24px; }
    .service h2 { font-size: 28px; }
    .projects-section { padding: 50px 24px; }
    .projects-grid { gap: 12px; }
    .about-content { padding: 50px 24px; }
    .about h2 { font-size: 26px; }
    .contact { padding: 50px 24px; }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .gallery { padding: 24px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .site-footer { padding: 40px 24px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1, .page-title-section h1 { font-size: 30px; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat:last-child { border-bottom: none; }
    .credentials { flex-direction: column; }
    .cred { text-align: center; }
}
