/*
Theme Name: BuildClean
Theme URI: https://example.com/buildclean
Author: froab
Author URI: https://example.com
Description: Clean, mobile-friendly theme for building and construction companies with clear contact info, parallax section, and strong SEO.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buildclean
Tags: clean, building, construction, responsive, custom-menu, custom-logo
*/

:root { --color-primary: #F2E436; --color-text: #0f172a; }

/* Basic reset */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--color-text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid #e2e8f0; background: #ffffff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.1rem; }
.brand-logo { width: 40px; height: 40px; border-radius: 8px; background: var(--color-primary); display: inline-block; }
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--color-text); font-weight: 600; }

/* Contact strip */
.header-cta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.header-cta a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; }
.header-cta .phone { background: var(--color-primary); color: #0f172a; border-color: var(--color-primary); }

/* Mobile nav */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2e8f0; padding: .75rem 4%; }
}

/* Hero with perspective gradient */
.hero { background: linear-gradient(135deg, #F2E436 0%, #f7f7f7 60%, #ffffff 100%); color: #0f172a; padding: 64px 0; transform: perspective(800px) rotateX(3deg); transform-origin: bottom; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 .5rem; color: #0f172a; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); margin: 0 0 1.25rem; opacity: .9; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .75rem 1rem; border-radius: 10px; border: 1px solid transparent; font-weight: 700; }
.btn-primary { background: var(--color-primary); color: #0f172a; }
.btn-light { background: #fff; color: #0f172a; border-color: #e2e8f0; }

/* Grids */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.card-body { padding: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 2rem 0; margin-top: 2rem; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-note { color: #475569; font-size: 14px; margin-top: 1rem; }

/* Content */
main { padding: 2rem 0; }
.post-meta { color: #64748b; font-size: 14px; margin-bottom: .5rem; }
.breadcrumbs { font-size: 14px; margin-bottom: 1rem; color: #475569; }
.pagination { display: flex; gap: .5rem; }
.pagination a, .pagination span { padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; }

/* Forms */
.input, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 900px) { .form-row { grid-template-columns: 1fr; } }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: #ecfeff; border: 1px solid #a5f3fc; }
.alert-error { background: #fee2e2; border: 1px solid #fecaca; }

/* Parallax section */
.parallax-section { position: relative; min-height: 360px; background-size: cover; background-position: center center; overflow: hidden; will-change: background-position; }
.parallax-overlay { position: absolute; inset: 0; background: #0f172a; pointer-events: none; }
.parallax-content { position: relative; padding: 64px 0; color: #fff; }
@media (max-width: 900px) { .parallax-content { padding: 48px 0; } }
@media (prefers-reduced-motion: reduce) { .parallax-section { background-attachment: scroll; } }

/* Extra utility styles */
.h2, h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 .75rem; }
.h3, h3 { font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 .5rem; }
.sidebar { margin-top: 1rem; }
.widget { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 1rem; background: #fff; }
.widget-title { margin-top: 0; }
