/* ============================================================
   United Enterprises (united161.com) — theme CSS
   Recreated from the original WordPress (Airtech theme + Elementor)
   Brand colors pulled directly from the live Elementor page data.
   ============================================================ */

:root {
  --primary: #BD2433;       /* brand maroon/red — buttons, accents, links */
  --primary-dark: #96131f;
  --section-alt: #F0EDF7;   /* light lavender section background */
  --text: #222222;
  --muted: #6b7280;
  --border: #eceaf2;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  line-height: 1.6;
  background: var(--white);
}
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
  color: var(--text);
}
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container-wide { max-width: 1230px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 70px 0; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600; font-size: .95rem;
  border-radius: 4px;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: .85rem;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 20px; max-width: 1230px; margin: 0 auto;
}
.top-bar a { color: var(--white); }
.top-bar-socials { display: flex; gap: .9rem; align-items: center; }
.top-bar-socials a { display: inline-flex; opacity: .9; }
.top-bar-socials a:hover { opacity: 1; }
.top-bar-socials svg { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 20px; }
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-family: "Poppins", sans-serif; font-size: .92rem; font-weight: 500; }
.nav-links > a { padding: .5rem 0; }
.nav-links > a:hover, .nav-services > button:hover { color: var(--primary); }
.nav-services { position: relative; }
.nav-services > button {
  display: flex; align-items: center; gap: .3rem;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--text); padding: .5rem 0;
}
.nav-services-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 260px; padding: .5rem 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.12); border-radius: 6px; z-index: 50;
}
.nav-services:hover .nav-services-menu { display: block; }
.nav-services-menu a { display: block; padding: .6rem 1.25rem; font-size: .9rem; }
.nav-services-menu a:hover { background: var(--section-alt); color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.open {
    display: flex; flex-direction: column; padding: 1rem 20px 1.5rem;
    border-top: 1px solid var(--border);
  }
  .mobile-menu a { padding: .6rem 0; font-family: "Poppins", sans-serif; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--section-alt);
  padding: 70px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-family: "Roboto", sans-serif; font-size: 1.1rem; color: var(--muted); margin-bottom: .25rem; }
.hero-title { font-size: 2.6rem; margin-bottom: 1.25rem; }
.hero-title strong { color: var(--primary); }
.hero-desc { font-size: 1.05rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-img img { border-radius: 10px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Section headings ---------- */
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--muted); }

/* ---------- Why choose us + request form ---------- */
.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.why-list { margin-top: 1.25rem; }
.why-list li { display: flex; gap: .75rem; padding: .6rem 0; color: var(--muted); }
.why-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); margin-top: .15rem; }
.why-img img { border-radius: 10px; margin-top: 1.5rem; }
.request-form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.request-form-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.request-form-card p { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.form-field { margin-bottom: 1rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: .95rem;
}
.form-field textarea { resize: vertical; }
.form-msg { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.form-msg.ok { background: #e8f7ee; color: #1b7a3d; }
.form-msg.err { background: #fdecec; color: #b3261e; }

/* ---------- Services grid (Sale/Installation/Repair/Service) ---------- */
.services-strip { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; text-align: center; }
.service-card img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 1rem; }
.service-card h4 { font-size: 1.05rem; margin: 0; }
.service-card h4 a:hover { color: var(--primary); }
@media (max-width: 800px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Fair prices + trust list ---------- */
.fair-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
.trust-list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.trust-list li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ---------- Reviews ---------- */
.reviews-strip { background: var(--section-alt); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.review-card { background: var(--white); border-radius: 10px; padding: 1.75rem; }
.review-card .stars { color: #f5a623; margin-bottom: .75rem; font-size: 1rem; letter-spacing: .15em; }
.review-card p.quote { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.review-card .author { font-weight: 700; font-size: .9rem; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Choose best team + service list ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.service-links-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.service-links-list li a { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; font-weight: 500; }
.service-links-list li a:hover { color: var(--primary); }
.service-links-list li a svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--primary); color: var(--white); text-align: center; }
.cta-banner h4 { font-family: "Poppins", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; opacity: .9; margin-bottom: .5rem; }
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: .5rem; }
.cta-banner p { opacity: .92; margin-bottom: 1.5rem; }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--primary); }

/* ---------- Brands strip ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5rem; align-items: center; }
.brands-grid img { max-height: 55px; width: auto; margin: 0 auto; object-fit: contain; filter: grayscale(20%); }
@media (max-width: 900px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Free estimate strip ---------- */
.estimate-strip { display: flex; align-items: center; gap: 2rem; justify-content: center; padding: 2rem 0; background: var(--section-alt); }
.estimate-strip img { width: 70px; height: 70px; object-fit: contain; }
.estimate-strip h4 { font-size: 1.4rem; margin-bottom: .25rem; }
.estimate-strip a { color: var(--primary); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #cfcfcf; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; font-family: "Poppins", sans-serif; }
.footer-grid ul li { padding: .35rem 0; font-size: .9rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-logo img { height: 48px; margin-bottom: 1rem; }
.footer-tagline { font-size: .9rem; color: #9a9a9a; margin-bottom: 1rem; }
.footer-address p { font-size: .9rem; margin: 0 0 .5rem; color: #cfcfcf; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
}
.footer-social-btn:hover { background: var(--primary); }
.footer-social-btn svg { width: 16px; height: 16px; color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: #9a9a9a;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .fair-price-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25; pointer-events: none; z-index: 0; }

/* ============================================================
   CORE-COMPATIBILITY UTILITIES
   core/blog.php, core/page.php, core/blog-post.php ship as CMS
   engine files (not editable per-site) and reference these HSL
   custom properties + utility classes directly. Defined here so
   they render correctly with this site's brand instead of falling
   back unstyled.
   ============================================================ */
:root {
  --primary: 353 71% 43%;             /* #BD2433 as H S% L% for hsl(var(--primary)) usage */
  --primary-foreground: 0 0% 100%;
  --foreground: 0 0% 13%;
  --muted-foreground: 220 9% 46%;
  --border: 260 25% 93%;
  --background: 0 0% 100%;
  --card: 0 0% 100%;
}

.muted { color: hsl(var(--muted-foreground)); }
.eyebrow { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: .5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.border-y { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.bg-gradient-section-alt { background: var(--section-alt); }
.bg-gradient-hero { background: linear-gradient(135deg, var(--section-alt), #ffffff); }
.text-gradient-primary { color: var(--primary); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-gradient { background: var(--primary); color: #fff; }
.btn-gradient:hover { background: var(--primary-dark); }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; pointer-events: none; z-index: 0; }
.orb-red { background: var(--primary); }
.orb-blue { background: #6b9bd1; }
.orb-purple { background: #9b7fd4; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.pillar-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; }
.pillar-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--section-alt); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.pillar-icon svg, .pillar-icon i { width: 22px; height: 22px; }

.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; }
.testi-stars { color: #f5a623; margin-bottom: .75rem; }
.testi-stars i { width: 16px; height: 16px; }
.testi-card .quote { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.testi-name { font-weight: 700; font-size: .9rem; }
.testi-role { font-size: .82rem; color: var(--muted); }

.filter-pills { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.filter-pill { padding: .5rem 1.1rem; border: 1px solid var(--border); border-radius: 9999px; font-size: .88rem; font-weight: 500; }
.filter-pill.active, .filter-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.trust-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-strip-grid p:first-child { font-size: 1.6rem; font-weight: 700; color: var(--primary); font-family: "Playfair Display", serif; }
.trust-strip-grid p:last-child { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .trust-strip-grid { grid-template-columns: 1fr 1fr; } }

.blog-featured { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.blog-featured-grid { display: grid; grid-template-columns: 1fr 1fr; }
.blog-featured-left { padding: 2rem; }
.blog-featured-right { background: var(--section-alt); display: flex; align-items: center; justify-content: center; min-height: 220px; }
.blog-featured-right img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta-row { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.blog-meta-row .cat { background: var(--section-alt); color: var(--primary); padding: .2rem .65rem; border-radius: 9999px; font-weight: 600; }
@media (max-width: 800px) { .blog-featured-grid { grid-template-columns: 1fr; } }

.blog-grid-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%; }
.blog-grid-thumb { aspect-ratio: 16/10; background: var(--section-alt); display: flex; align-items: center; justify-content: center; }
.blog-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-grid-body { padding: 1.25rem; }
.blog-grid-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.blog-grid-body p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.blog-grid-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.blog-grid-foot .read { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Service detail pages ---------- */
.service-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.service-sidebar { position: sticky; top: 90px; }
.service-sidebar-menu { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.service-sidebar-menu h4 { background: var(--primary); color: #fff; margin: 0; padding: 1rem 1.25rem; font-family: "Poppins", sans-serif; font-size: 1rem; }
.service-sidebar-menu ul { padding: .5rem 0; }
.service-sidebar-menu li a {
  display: block; padding: .65rem 1.25rem; font-size: .9rem; border-bottom: 1px solid var(--border);
}
.service-sidebar-menu li:last-child a { border-bottom: none; }
.service-sidebar-menu li a:hover, .service-sidebar-menu li a.active { color: var(--primary); background: var(--section-alt); }
.service-sidebar-banner {
  background: var(--section-alt); border-radius: 10px; padding: 1.75rem; text-align: center;
}
.service-sidebar-banner p.eyebrow-sm { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.service-sidebar-banner h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-sidebar-banner p.desc span { color: var(--primary); font-weight: 700; }
.service-sidebar-banner .btn { margin-top: 1rem; width: 100%; justify-content: center; }

.service-content h1 { font-size: 2rem; margin-bottom: 1.25rem; }
.service-content p { color: var(--muted); line-height: 1.75; }
.service-benefits-block { background: var(--section-alt); border-radius: 10px; padding: 1.75rem 2rem; margin: 2rem 0; }
.service-benefits-block h3 { margin-bottom: .5rem; }
.service-benefits-list { margin-top: 1rem; }
.service-benefits-list li { display: flex; gap: .6rem; padding: .5rem 0; color: var(--text); }
.service-benefits-list li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--primary); margin-top: .2rem; }
.service-benefits-list ul { margin-left: 1.75rem; margin-top: .4rem; }
.service-benefits-list ul li { color: var(--muted); font-size: .92rem; }
.service-content .page-content-body p { color: var(--muted); line-height: 1.75; margin-bottom: 1.1rem; }

@media (max-width: 900px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}
