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

:root {
  --teal: #0a7ea4;
  --teal-dark: #065f7e;
  --teal-light: #e6f4f9;
  --charcoal: #1a1f2e;
  --mid: #4a5568;
  --light: #f7fafc;
  --white: #ffffff;
  --accent: #f4a020;
  --border: #d1e8f0;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cwtech-nav {
  background: #1a1f2e;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-logo { text-decoration: none; cursor: pointer; }

.cwtech-nav ul.nav-links,
.cwtech-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cwtech-nav ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.cwtech-nav ul li a:hover,
.cwtech-nav ul li.current a,
.cwtech-nav ul li.active a {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.hero {
  background: #ffffff;
  color: #1a1f2e;
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 1.5px solid #d1e8f0;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: #e6f4f9;
  border: 1px solid #d1e8f0;
  color: #065f7e;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #1a1f2e;
}

.hero h1 span { color: #0a7ea4; }

.hero p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary { background: #0a7ea4; color: #ffffff; }
.btn-primary:hover { background: #065f7e; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #1a1f2e;
  border: 1.5px solid #d1e8f0;
}
.btn-outline:hover { border-color: #0a7ea4; color: #0a7ea4; background: #e6f4f9; }

section { padding: 5rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a7ea4;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 560px;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border: 1.5px solid #d1e8f0;
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.25s;
  overflow: hidden;
}

.service-card:hover {
  border-color: #0a7ea4;
  box-shadow: 0 8px 30px rgba(10,126,164,0.12);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px; height: 48px;
  background: #e6f4f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; color: #4a5568; line-height: 1.65; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-item { text-align: center; }
.why-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #0a7ea4;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.88rem; color: #4a5568; }

.cta-band {
  background: #0a7ea4;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; color: #ffffff; }
.cta-band p { font-size: 1rem; opacity: 1; color: #ffffff; margin-bottom: 2rem; }

.btn-white {
  background: #ffffff;
  color: #0a7ea4;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, #e6f4f9, #c8e8f4);
  border-radius: 18px;
  padding: 3rem;
  text-align: center;
}
.about-visual .big-icon { font-size: 5rem; display: block; margin-bottom: 1rem; }
.about-visual p { font-size: 0.95rem; color: #065f7e; font-weight: 500; }

.values-list { list-style: none; margin-top: 1.5rem; }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #d1e8f0;
  font-size: 0.95rem;
}
.values-list li:last-child { border-bottom: none; }
.check {
  width: 22px; height: 22px;
  background: #0a7ea4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.contact-icon {
  width: 44px; height: 44px;
  background: #e6f4f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a5568;
  margin-bottom: 0.2rem;
}
.contact-info-item p { font-size: 0.95rem; color: #1a1f2e; }

.contact-form {
  background: #f7fafc;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1.5px solid #d1e8f0;
}
.contact-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #4a5568; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1e8f0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: #1a1f2e;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #0a7ea4; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.cwtech-footer {
  background: #1a1f2e;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
.cwtech-footer strong { color: #ffffff; }

.bg-light { background: #f7fafc; }

#content { padding: 0; max-width: 100%; }
#content .container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .cwtech-nav ul { display: none; }
}

/* ── Joomla menu module overrides ── */
.cwtech-nav .moduletable,
.cwtech-nav .mod-menu,
.cwtech-nav nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.cwtech-nav .moduletable ul,
.cwtech-nav .mod-menu ul,
.cwtech-nav nav ul {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.cwtech-nav .moduletable ul li,
.cwtech-nav .mod-menu ul li,
.cwtech-nav nav ul li {
  margin: 0;
  padding: 0;
  background: transparent;
}

.cwtech-nav .moduletable ul li a,
.cwtech-nav .mod-menu ul li a,
.cwtech-nav nav ul li a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px !important;
  transition: all 0.2s !important;
  background: transparent !important;
  display: block;
}

.cwtech-nav .moduletable ul li a:hover,
.cwtech-nav .mod-menu ul li a:hover,
.cwtech-nav nav ul li a:hover,
.cwtech-nav .moduletable ul li.current a,
.cwtech-nav .mod-menu ul li.current a,
.cwtech-nav .moduletable ul li.active a,
.cwtech-nav .mod-menu ul li.active a {
  color: #ffffff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Hide any module title in the nav */
.cwtech-nav .moduletable h3,
.cwtech-nav .moduletable h4 {
  display: none;
}

/* ── Fix menu pushed to right ── */
.cwtech-nav {
  justify-content: space-between;
}

.cwtech-nav .moduletable {
  margin-left: auto;
}

/* ── Hide Joomla article metadata (Edit, Published Article, HOME heading) ── */
.article-info,
.article-header,
.page-header,
.com-content-article__header,
.item-page > h1,
.item-page > h2,
.contentheading,
dd.published,
dl.article-info,
.article-info-term,
ul.actions,
.icons,
.print-icon,
.email-icon {
  display: none !important;
}

/* ── Fix content centering ── */
.item-page,
.blog,
.com-content-article {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Remove default Joomla body/content padding - site only */
#wrapper_r,
#all,
#main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure hero and sections go full width */
.hero,
.cta-band,
section,
.bg-light {
  width: 100%;
  box-sizing: border-box;
}

/* ── Nav padding and alignment fix ── */
.cwtech-nav {
  padding: 0 2rem !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Constrain nav contents to same max-width as page content */
.cwtech-nav > * {
  max-width: none;
}

/* Pull menu links closer to center, away from far right */
.cwtech-nav .moduletable,
.cwtech-nav .mod-menu {
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Fix Joomla wrapping nav in extra divs that break layout */
.cwtech-nav > div {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Hide Joomla frontend edit links ── */
.jp-relateditems,
.item-page .icons,
.item-page ul.actions,
a[href*="task=article.edit"],
a[href*="layout=edit"],
.icon-edit,
.icon-envelope,
.icon-print,
div.icons,
ul.actions,
ul.actions li,
.article-info-term,
.article-info dd,
dl.article-info,
.com-content-article__toolbar,
#toolbar,
.edit-icon,
joomla-toolbar-button {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Joomla Contact Component Styling ── */
.com-contact,
.com-contact__form,
.contact {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.com-contact h1,
.com-contact h2,
.contact-form h2 {
  display: none !important;
}

/* Form fields */
.com-contact .control-group,
.com-contact .control-wrapper {
  margin-bottom: 1.25rem;
}

.com-contact label,
.com-contact .control-label label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif;
}

.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact input[type="tel"],
.com-contact textarea,
.com-contact select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1e8f0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: #1a1f2e;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

.com-contact input:focus,
.com-contact textarea:focus {
  border-color: #0a7ea4;
}

.com-contact textarea {
  min-height: 130px;
  resize: vertical;
}

/* Submit button */
.com-contact .btn,
.com-contact input[type="submit"],
.com-contact button[type="submit"] {
  background: #0a7ea4 !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: background 0.2s !important;
}

.com-contact .btn:hover,
.com-contact input[type="submit"]:hover {
  background: #065f7e !important;
}

/* Contact info layout */
.com-contact__address,
.contact-address {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Success/error messages */
.com-contact .alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.com-contact .alert-success {
  background: #e6f4f9;
  border: 1.5px solid #0a7ea4;
  color: #065f7e;
}

.com-contact .alert-error,
.com-contact .alert-danger {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
}

/* ── Joomla contact form inside styled box ── */

/* Hide Joomla's own fieldset/legend wrapper */
.contact-form fieldset,
.contact-form .contact-form,
.contact-form legend {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Hide Joomla's default heading inside form */
.contact-form h2,
.contact-form h3.contact-form-title {
  display: none !important;
}

/* Input fields */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1.5px solid #d1e8f0 !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.92rem !important;
  color: #1a1f2e !important;
  background: #ffffff !important;
  transition: border-color 0.2s !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin-bottom: 1.25rem !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0a7ea4 !important;
}

.contact-form textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Labels */
.contact-form label {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #4a5568 !important;
  margin-bottom: 0.4rem !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Submit button */
.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form .btn-primary {
  width: 100% !important;
  background: #0a7ea4 !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: background 0.2s !important;
  margin-top: 0.5rem !important;
}

.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  background: #065f7e !important;
}

/* Control groups */
.contact-form .control-group {
  margin-bottom: 0 !important;
}

.contact-form .controls {
  margin: 0 !important;
}

/* Hide captcha label clutter */
.contact-form .control-label {
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  padding: 0 !important;
}

/* Success/error messages */
.contact-form .alert-success {
  background: #e6f4f9 !important;
  border: 1.5px solid #0a7ea4 !important;
  color: #065f7e !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
}

.contact-form .alert-error,
.contact-form .alert-danger {
  background: #fef2f2 !important;
  border: 1.5px solid #ef4444 !important;
  color: #991b1b !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
}

/* ── Mobile hamburger menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .cwtech-nav-inner {
    flex-wrap: wrap;
    padding: 0 1rem 0 1.5rem;
    position: relative;
  }

  /* Hide Joomla menu module on mobile by default */
  .cwtech-nav .moduletable,
  .cwtech-nav .mod-menu {
    display: none !important;
    width: 100%;
    background: #1a1f2e;
    padding: 0.5rem 0 1rem;
  }

  /* Show when open */
  .cwtech-nav .moduletable.mobile-open,
  .cwtech-nav .mod-menu.mobile-open {
    display: block !important;
  }

  .cwtech-nav .moduletable ul,
  .cwtech-nav .mod-menu ul,
  .cwtech-nav nav ul {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .cwtech-nav .moduletable ul li a,
  .cwtech-nav .mod-menu ul li a {
    display: block !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1.25rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    text-align: right !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }

  /* Make nav taller to accommodate logo */
  .cwtech-nav {
    height: auto !important;
    min-height: 64px;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .cwtech-nav-inner {
    height: 64px;
    align-items: center;
  }
}

/* ── MOBILE MENU OVERRIDE - FORCE RIGHT, CAPS, BIGGER ── */
@media (max-width: 768px) {
  .cwtech-nav .moduletable ul li a,
  .cwtech-nav .mod-menu ul li a,
  .cwtech-nav ul li a {
    text-align: right !important;
    text-transform: uppercase !important;
    font-size: 1.25rem !important;
    letter-spacing: 1.5px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.5rem !important;
    display: block !important;
    color: rgba(255,255,255,0.85) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .cwtech-nav .moduletable ul li a:hover,
  .cwtech-nav .mod-menu ul li a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1) !important;
  }
}

/* ── Breezing Forms Styling ── */
.cbfcForm,
.cbfc-form,
.bfQuickMode,
.bfPage {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Hide Breezing Forms default title */
.bfFormTitle,
.cbfcFormTitle {
  display: none !important;
}

/* Labels */
.bfLabel,
.cbfcLabel,
.bfQuickMode label {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #4a5568 !important;
  margin-bottom: 0.4rem !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Input fields */
.bfQuickMode input[type="text"],
.bfQuickMode input[type="email"],
.bfQuickMode input[type="tel"],
.bfQuickMode textarea,
.bfQuickMode select,
.cbfcForm input[type="text"],
.cbfcForm input[type="email"],
.cbfcForm input[type="tel"],
.cbfcForm textarea,
.cbfcForm select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1.5px solid #d1e8f0 !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.92rem !important;
  color: #1a1f2e !important;
  background: #ffffff !important;
  transition: border-color 0.2s !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin-bottom: 1.25rem !important;
  box-shadow: none !important;
}

.bfQuickMode input:focus,
.bfQuickMode textarea:focus,
.cbfcForm input:focus,
.cbfcForm textarea:focus {
  border-color: #0a7ea4 !important;
}

.bfQuickMode textarea,
.cbfcForm textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Row/element wrappers */
.bfElemWrap,
.bfQuickMode .bfElemWrap,
.cbfcElemWrap {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Submit button */
.bfQuickMode input[type="submit"],
.bfQuickMode button[type="submit"],
.cbfcForm input[type="submit"],
.cbfcForm button[type="submit"],
.bfSubmitButton {
  width: 100% !important;
  background: #0a7ea4 !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: background 0.2s !important;
  margin-top: 0.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.bfQuickMode input[type="submit"]:hover,
.cbfcForm input[type="submit"]:hover,
.bfSubmitButton:hover {
  background: #065f7e !important;
}

/* Success message */
.bfSuccessMessage,
.cbfcSuccessMessage {
  background: #e6f4f9 !important;
  border: 1.5px solid #0a7ea4 !important;
  color: #065f7e !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Error message */
.bfErrorMessage,
.cbfcErrorMessage,
.bfQuickMode .bfErrorMessage {
  background: #fef2f2 !important;
  border: 1.5px solid #ef4444 !important;
  color: #991b1b !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Required asterisk */
.bfRequired,
.cbfcRequired {
  color: #0a7ea4 !important;
}

/* Captcha */
.bfQuickMode .bfCaptchaWrap,
.cbfcCaptchaWrap {
  margin-bottom: 1.25rem !important;
}

/* ── Mobile contact page fix ── */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1.5rem !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  section .container {
    padding: 0 1rem !important;
    overflow: hidden !important;
  }

  /* Fix house visits box overflow */
  .contact-layout > div {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ── Global mobile overflow fix ── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .container {
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .service-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .hero {
    padding: 3rem 1rem !important;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .btn-group {
    flex-direction: column !important;
    align-items: center !important;
  }

  .btn, .btn-white {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  section {
    padding: 3rem 0 !important;
    overflow: hidden !important;
  }

  .about-layout {
    grid-template-columns: 1fr !important;
  }

  .cta-band {
    padding: 3rem 1rem !important;
  }
}

/* ── Fix service card width on mobile ── */
@media (max-width: 768px) {
  .services-grid {
    padding: 0 !important;
    margin: 0 !important;
  }

  .service-card {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .item-page,
  .com-content-article {
    overflow: hidden !important;
    max-width: 100vw !important;
  }
}

/* ── Service card images ── */
.service-card img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
  margin-top: 1rem !important;
  display: block !important;
  overflow: hidden !important;
}
/* ── Mobile logo padding fix ── */
@media (max-width: 768px) {
  .nav-logo {
    padding-left: 0.5rem !important;
  }
}
/* ── Hide Remote Support from mobile menu ── */
@media (max-width: 768px) {
  a.hide-on-mobile {
    display: none !important;
  }
  a.hide-on-mobile parent,
  .cwtech-nav li:has(a.hide-on-mobile) {
    display: none !important;
  }
}
/* ── Sticky nav fix for mobile ── */
@media (max-width: 768px) {
  .cwtech-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  /* Prevent overflow hidden from breaking sticky */
  html, body {
    overflow-x: clip !important;
  }

  .item-page,
  .com-content-article {
    overflow: visible !important;
  }
}