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

:root {
  --primary: #00468B;
  --primary-dark: #003068;
  --accent: #e8a020;
  --light: #f5f7fa;
  --text: #333;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
header { position: sticky; top: 0; z-index: 100; background: #1c1c2e; box-shadow: 0 2px 12px rgba(0,0,0,.6); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .3rem 1.5rem; max-width: 1300px; margin: auto; gap: 1rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 70px; width: auto; max-width: 300px; object-fit: contain; border-radius: 4px; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.nav-links a { color: #b0c4de; font-size: .92rem; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.btn-nav { background: var(--accent); color: #fff !important; padding: .4rem .9rem; border-radius: var(--radius); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; flex-shrink: 0; padding: .3rem; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #12122a; padding: 1rem 1.5rem; gap: .8rem; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .btn-nav { border-bottom: none !important; }
  .logo img { height: 52px; }
}

/* ── BUTTONS ── */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.6rem; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; transition: opacity .2s; font-size: 1rem; }
.btn:hover { opacity: .85; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); opacity: 1; }

/* ── HERO ── */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('images/Residential2.jpg') center/cover no-repeat; opacity: .25; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(150deg, var(--primary) 0%, #1565c0 60%, #0d47a1 100%); z-index: 1; mix-blend-mode: multiply; }
.hero-content { position: relative; z-index: 2; max-width: 760px; color: #fff; padding: 2rem 1.5rem; }
.hero-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .hero-content h1 { font-size: 1.7rem; } .hero-logo { width: 110px; } }

/* ── PAGE HERO ── */
.page-hero { background: var(--primary); color: #fff; text-align: center; padding: 4rem 1.5rem 3rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { opacity: .8; margin-top: .5rem; font-size: 1.05rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.bg-light { background: var(--light); }
.container { max-width: 1100px; margin: auto; }
.section h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: .4rem; }
.section h2::after { content: ''; display: block; width: 50px; height: 4px; background: var(--accent); margin-top: .4rem; margin-bottom: 1.5rem; }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); }
.stat span { font-size: 2.2rem; font-weight: 700; color: var(--primary); display: block; }
.stat p { color: #666; font-size: .9rem; margin-top: .2rem; }

/* ── SERVICE CARDS (grid) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; display: flex; flex-direction: column; color: var(--text); }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.2rem; flex: 1; }
.card-body h3 { color: var(--primary); margin-bottom: .4rem; font-size: 1rem; }
.card-body p { font-size: .88rem; color: #555; }

/* ── FEATURE CARDS ── */
.feature-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.feature-card h3 { color: var(--primary); margin-bottom: .5rem; }

/* ── GALLERY ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; padding: 1.5rem .8rem .8rem; }
.gallery-caption p { font-size: .9rem; font-weight: 600; margin-top: .3rem; }
.tag { background: var(--accent); font-size: .72rem; padding: .2rem .6rem; border-radius: 20px; font-weight: 700; text-transform: uppercase; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { background: #fff; border: 2px solid #ddd; border-radius: 20px; padding: .4rem 1rem; cursor: pointer; font-size: .9rem; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-item.hidden { display: none; }

/* ── SERVICE LIST ── */
.service-list { display: flex; flex-direction: column; gap: 2rem; }
.service-item { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-item img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 1.5rem 1.5rem 1.5rem 0; }
.service-content h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: .6rem; }
.service-content ul { padding-left: 1.2rem; color: #555; font-size: .92rem; }
.service-content li { margin-bottom: .3rem; }
@media (max-width: 640px) {
  .service-item { grid-template-columns: 1fr; }
  .service-content { padding: 1rem; }
}

/* ── CONTACT INFO ── */
.contact-info h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: .8rem; }
.contact-info p { margin-bottom: .8rem; }
.contact-info a { color: var(--primary); text-decoration: underline; }

/* ── FORMS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
label { font-size: .88rem; font-weight: 600; color: var(--primary); }
input, select, textarea { padding: .65rem .9rem; border: 1.5px solid #ccc; border-radius: var(--radius); font-size: .95rem; font-family: inherit; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
input.error, select.error, textarea.error { border-color: #e53e3e; }
.form-msg { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-msg.success { background: #c6f6d5; color: #276749; }
.form-msg.error-msg { background: #fed7d7; color: #9b2c2c; }
.hidden { display: none; }

/* ── CTA SECTION ── */
.cta-section { background: var(--primary); color: #fff; text-align: center; padding: 5rem 1.5rem; }
.cta-section h2 { font-size: 2rem; margin-bottom: .5rem; }
.cta-section h2::after { display: none; }
.cta-section p { opacity: .85; margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FOOTER ── */
footer { background: var(--primary-dark); color: #aac4e8; padding: 3rem 1.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1100px; margin: auto; padding-bottom: 2.5rem; align-items: start; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.footer-inner > div p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: #aac4e8; font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
footer a { color: #aac4e8; }
footer a:hover { color: #fff; }
.footer-copy { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #7a9fc0; max-width: 1100px; margin: 0 auto; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── MOBILE IMPROVEMENTS ── */
@media (max-width: 600px) {
  .section { padding: 3rem 1rem; }
  .section h2 { font-size: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  footer ul { flex-direction: row; flex-wrap: wrap; gap: .8rem; }
  .cta-section { padding: 3rem 1rem; }
  .page-hero { padding: 3rem 1rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .two-col { gap: 2rem; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
