body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 22px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 15px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  color: #E94560;
  font-weight: 400;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #E94560;
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}
/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%);
  content: "";
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #E94560;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #E94560;
}
.section-title {
  margin-top: 40px;
  margin-bottom: 70px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #E94560 0%, #c73652 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.section-title p {
  font-size: 22px;
}
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #E94560;
  background-image: linear-gradient(to right, #E94560 0%, #c73652 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #c73652;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #1A1A2E;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}
.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}
.intro h1 span {
  font-weight: 800;
  color: #E94560;
}
.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}
/* Features Section */
#features {
  background: #f6f6f6;
}
#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
/* About Section */
#about {
  padding: 100px 0;
}
#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}
#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #E94560 0%, #c73652 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}
#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}
#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #E94560;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}
#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 24px;
  margin: 30px 0;
}
/* Services Section */
#services {
  padding: 100px 0;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%);
  color: #fff;
}
#services .service-desc {
  margin: 10px 10px 20px;
}
#services h2 {
  color: #fff;
}
#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
#services h3 {
  font-weight: 500;
  padding: 5px 0;
  color: #fff;
}
#services p {
  color: rgba(255, 255, 255, 0.75);
}
#services .service-desc {
  margin-bottom: 40px;
}
/* Portfolio Section */
#portfolio {
  padding: 100px 0;
}
.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}
.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(
    to right,
    rgba(99, 114, 255, 0.8) 0%,
    rgba(92, 169, 251, 0.8) 100%
  );
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}
/* Testimonials Section */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team {
  padding: 100px 0;
}
#team h4 {
  margin: 5px 0;
}
#team .team-img {
  width: 240px;
}
#team .thumbnail {
  background: transparent;
  border: 0;
}
#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}
/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #c73652 0%, #E94560 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .contact-item a {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #E94560;
  background: #fff;
}
/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #E94560;
}
#footer a:hover {
  border-bottom: 2px solid #E94560;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}

/* ═══════════════════════════════════════════
   COCOAUTOMATION — CUSTOM SECTIONS
═══════════════════════════════════════════ */

/* ── Stats Bar ─────────────────────────────── */
#stats {
  background: linear-gradient(135deg, #1A1A2E 0%, #0F3460 100%);
  padding: 50px 0;
}
.stat-item {
  padding: 20px 10px;
}
.stat-value {
  font-size: 48px;
  font-weight: 800;
  color: #E94560;
  line-height: 1;
  font-family: "Raleway", sans-serif;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Method / 4 Steps ──────────────────────── */
#method {
  background: #f9f9f9;
  padding: 80px 0;
}
.method-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  margin: 10px;
  border: 2px solid #eee;
  transition: all 0.3s ease;
  min-height: 200px;
}
.method-card:hover,
.method-card-open {
  border-color: #E94560;
  box-shadow: 0 8px 30px rgba(233,69,96,0.15);
  transform: translateY(-3px);
}
.method-step-num {
  font-size: 42px;
  font-weight: 900;
  color: #E94560;
  line-height: 1;
  margin-bottom: 12px;
  font-family: "Raleway", sans-serif;
}
.method-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 10px;
}
.method-card p {
  font-size: 14px;
  color: #666;
}
.method-detail {
  margin-top: 12px;
  color: #E94560 !important;
  font-size: 13px !important;
}
.method-footer {
  color: #888;
  font-size: 16px;
  margin-top: 10px;
}

/* ── Industries ────────────────────────────── */
#industries {
  background: #fff;
  padding: 80px 0;
}
.industry-card {
  padding: 30px 20px;
  margin-bottom: 20px;
}
.industry-card i.fa {
  font-size: 48px;
  color: #E94560;
  margin-bottom: 16px;
  display: block;
}
.industry-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 10px;
}
.industry-card p {
  color: #666;
  font-size: 14px;
}
.industry-highlight {
  margin-top: 8px;
  background: rgba(233,69,96,0.08);
  border-left: 3px solid #E94560;
  padding: 8px 12px;
  font-size: 13px;
  color: #1A1A2E;
  border-radius: 0 4px 4px 0;
}
.industry-highlight .fa {
  color: #E94560;
  font-size: 13px !important;
  margin-right: 6px;
  display: inline !important;
}

/* ── Case Studies ──────────────────────────── */
#casestudies {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  padding: 80px 0;
}
#casestudies .section-title h2,
#casestudies .section-title p {
  color: #fff;
}
#casestudies .section-title h2::after {
  background: #E94560;
}
.case-study-card {
  margin-bottom: 30px;
}
.case-study-inner {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
}
.case-study-inner:hover {
  background: rgba(255,255,255,0.1);
  border-color: #E94560;
}
.case-industry {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #E94560;
  margin-bottom: 10px;
  font-weight: 700;
}
.case-stat {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  font-family: "Raleway", sans-serif;
  line-height: 1.1;
}
.case-period {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.case-problem,
.case-solution {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.case-result {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  background: rgba(233,69,96,0.15);
  padding: 10px;
  border-radius: 4px;
}
.case-quote {
  border-left: 3px solid #E94560;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
.case-quote footer {
  color: #E94560;
  font-style: normal;
  font-size: 12px;
  margin-top: 6px;
}
.case-expanded {
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Comparison Table ──────────────────────── */
#comparison {
  background: #f5f6fa;
  padding: 80px 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 15px;
}
.comparison-table thead tr th {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.comp-col-traditional {
  background: #e8e8e8;
  color: #555;
  border-radius: 8px 0 0 0;
  width: 50%;
}
.comp-col-coco {
  background: #1A1A2E;
  color: #fff;
  border-radius: 0 8px 0 0;
  width: 50%;
}
.comparison-table tbody tr:nth-child(odd) .comp-traditional { background: #f0f0f0; }
.comparison-table tbody tr:nth-child(even) .comp-traditional { background: #e8e8e8; }
.comparison-table tbody tr:nth-child(odd) .comp-coco { background: rgba(233,69,96,0.08); }
.comparison-table tbody tr:nth-child(even) .comp-coco { background: rgba(233,69,96,0.04); }
.comp-traditional,
.comp-coco {
  padding: 14px 24px;
  font-size: 14px;
  vertical-align: middle;
}
.comp-traditional { color: #666; }
.comp-coco { color: #1A1A2E; font-weight: 500; }
.comp-x { color: #aaa; margin-right: 8px; }
.comp-check { color: #E94560; margin-right: 8px; }

/* ── Pricing ───────────────────────────────── */
#pricing {
  background: #fff;
  padding: 80px 0;
}
.pricing-card {
  margin-bottom: 24px;
}
.pricing-inner {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-featured .pricing-inner {
  border-color: #E94560;
  box-shadow: 0 12px 40px rgba(233,69,96,0.2);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #E94560;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 20px;
}
.pricing-setup,
.pricing-monthly {
  margin-bottom: 8px;
}
.pricing-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}
.pricing-amount {
  font-size: 20px;
  font-weight: 700;
  color: #E94560;
}
.pricing-best {
  font-size: 13px;
  color: #777;
  margin: 16px 0 20px;
  min-height: 50px;
}
.pricing-note {
  color: #888;
  font-size: 14px;
}
.pricing-note a { color: #E94560; }

/* ── Services bullets ──────────────────────── */
.service-pillar { margin-bottom: 30px; }
.service-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
}
.service-bullets li {
  font-size: 13px;
  padding: 4px 0;
  display: flex;
  align-items: center;
}
.service-bullets .fa {
  color: #E94560;
  margin-right: 10px;
}

#services .service-pillar i.fa {
    font-size: 24px;
    width: 60px;
    height: 60px;
    padding: 20px 0;
    background: linear-gradient(to right, #c73652 0%, #E94560 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* ── Header secondary CTA ──────────────────── */
.header-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  margin-left: 10px;
  transition: all 0.3s ease;
}
.header-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ── Contact form extras ───────────────────── */
.contact-success {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}
.contact-success .fa {
  font-size: 52px;
  color: #2ecc71;
  display: block;
  margin-bottom: 16px;
}
.contact-success p {
  font-size: 18px;
  color: #fff;
}
.contact-error {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 12px;
  background: rgba(231,76,60,0.1);
  padding: 10px 14px;
  border-radius: 4px;
}
.contact-response span { margin-bottom: 4px; }
.contact-trust {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
#contact select.form-control {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
#contact select.form-control option {
  background: #1A1A2E;
  color: #fff;
}
#contact .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES — max-width: 767px
   !! DESKTOP STYLES ARE NOT TOUCHED — all fixes are inside media queries !!
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

  /* ── GLOBAL: stop Bootstrap .row -15px margins bleeding past screen edge ── */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* restore column padding so text doesn't touch edges */
  [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* clip overflow on every section individually — safer than html/body global */
  body { overflow-x: hidden; }

  #features, #stats, #about, #services, #method,
  #industries, #casestudies, #comparison,
  #portfolio, #pricing, #testimonials, #team, #contact {
    overflow-x: hidden;
    position: relative;
  }

  /* ── HERO ────────────────────────────────────────────────────────────────── */
  .intro h1 {
    font-size: 36px;    /* was 82px — unreadable on phone */
    line-height: 1.2;
  }
  .intro p {
    font-size: 16px;    /* was 22px */
    margin-bottom: 30px;
  }
  header .intro-text {
    padding-top: 120px;   /* was 350px */
    padding-bottom: 80px; /* was 200px */
  }
  /* stack the two hero CTA buttons */
  .header-btn-secondary {
    margin-left: 0;
    margin-top: 12px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-custom {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── ABOUT — fixed 520px image is the main overflow culprit ─────────────── */
  #about img {
    width: 100% !important;   /* override the hardcoded 520px */
    max-width: 100%;
    margin: 0 0 30px 0;
  }

  /* ── SECTION TITLES ──────────────────────────────────────────────────────── */
  h2       { font-size: 26px; }
  .section-title { margin-bottom: 40px; }
  .section-title p { font-size: 16px; }

  /* ── STATS BAR — 2 cols instead of 4 ────────────────────────────────────── */
  .stat-item {
    width: 50%;
    float: left;
    padding: 16px 8px;
    box-sizing: border-box;
  }
  .stat-value { font-size: 34px; }
  .stat-label { font-size: 12px; }

  /* ── SERVICES ────────────────────────────────────────────────────────────── */
  .service-pillar { margin-bottom: 24px; }
  .service-bullets li {
    font-size: 12px;
  }

  /* ── METHOD CARDS ────────────────────────────────────────────────────────── */
  .method-card {
    margin: 6px 0;
    min-height: auto;
  }
  .method-step-num { font-size: 32px; }

  /* ── PORTFOLIO — negative margins cause white gap ────────────────────────── */
  .portfolio-item {
    margin: 0 !important; /* override the -15px/-14px desktop values */
  }

  /* ── COMPARISON TABLE — scroll horizontally, don't stretch page ─────────── */
  #comparison .col-md-10,
  #comparison .col-md-offset-1 {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px;
  }
  .comparison-table {
    min-width: 460px; /* table scrolls, page doesn't */
    font-size: 12px;
  }
  .comp-traditional,
  .comp-coco {
    padding: 10px 12px;
  }

  /* ── PRICING — remove scale that causes right-side bleed ────────────────── */
  .pricing-featured .pricing-inner {
    transform: none !important;
  }
  .pricing-card    { margin-bottom: 16px; }
  .pricing-best    { min-height: auto; }

  /* ── CASE STUDIES ────────────────────────────────────────────────────────── */
  .case-study-card  { margin-bottom: 16px; }
  .case-study-inner { padding: 20px; }
  .case-stat        { font-size: 24px; }

  /* ── INDUSTRIES ──────────────────────────────────────────────────────────── */
  .industry-card       { padding: 20px 12px; margin-bottom: 12px; }
  .industry-highlights li { font-size: 12px; }

  /* ── CONTACT ─────────────────────────────────────────────────────────────── */
  #contact h3 {
    margin-top: 40px; /* was 80px — too much space on mobile */
  }
  #contact .social ul li {
    margin: 0 10px; /* tighten social icons */
  }

  /* ── TEAM ────────────────────────────────────────────────────────────────── */
  #team .team-img {
    width: 160px; /* was 240px — too wide on small screens */
  }
}

/* ── Tablet (768–991px) — fix row bleed and about image ──────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #about img {
    width: 100% !important;
    max-width: 100%;
  }
  .pricing-featured .pricing-inner {
    transform: none !important;
  }
  body { overflow-x: hidden; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FIX PATCH 2 — Features alignment + Portfolio grid
   All changes inside @media — desktop untouched
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

  /* ── FEATURES — single column on small phones ────────────────────────────
     col-xs-6 puts 2 items per row but icons + text is too cramped < 480px  */
  #features .col-xs-6 {
    width: 100%;          /* override col-xs-6 → full width */
    margin-bottom: 28px;
  }
  #features i.fa {
    width: 80px;
    height: 80px;
    padding: 22px 0;
    font-size: 30px;
  }
  /* fix the col-md-offset-1 section title wrapper that adds dead space */
  #features .col-md-10 {
    width: 100%;
    margin-left: 0;
    padding: 0 12px;
  }

  /* ── PORTFOLIO — fix dark bars + 2-col grid + always-visible titles ──────*/

  /* 1. Kill the negative margins that cause the dark overflow bars */
  .portfolio-item {
    margin: 0 !important;
    padding: 4px !important;
  }

  /* 2. Force 2-column grid on mobile
        col-sm-6 only kicks in at 768px; below that cols are full width
        We override to make them 2-per-row manually                          */
  .portfolio-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0;               /* gap handled by padding on .portfolio-item */
  }
  .portfolio-items > [class*="col-"] {
    width: 50% !important;
    padding: 4px !important;
    float: none !important;
  }

  /* 3. Tile card style for each item */
  .portfolio-item .hover-bg {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .portfolio-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
  }

  /* 4. Title always visible on mobile (no hover on touch screens)
        Replace the desktop hover overlay with a persistent label bar         */
  .hover-bg .hover-text {
    opacity: 1 !important;          /* always show — override opacity:0 */
    position: relative !important;  /* take up real space below image */
    height: auto !important;
    padding: 6px 8px !important;
    background: rgba(26, 26, 46, 0.92) !important;
    display: block !important;
    transform: none !important;     /* cancel the translateY desktop animation */
  }
  .hover-bg .hover-text > h4 {
    opacity: 1 !important;
    transform: none !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: none !important;
    margin: 0 !important;
    white-space: normal;
    line-height: 1.3;
  }

  /* 5. Divider line between portfolio rows */
  .portfolio-items > [class*="col-"]:nth-child(2n+1) {
    clear: left;
  }

  /* Ensure container doesn't add extra padding that breaks 50% cols */
  #portfolio .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  #portfolio .row {
    margin: 0 !important;
  }
}

/* ── 2-col features on mid-range phones (480–767px) ─────────────────────── */
@media (min-width: 480px) and (max-width: 767px) {
  #features .col-xs-6 {
    width: 50%;           /* restore 2-col for wider phones */
    display: inline-block;
    vertical-align: top;
  }
}

.mb-4 {
  margin-bottom: 3.5rem !important;
}