/*
Theme Name: The Minimal Child
Description: Child theme for The Minimal. You can now safely customize it and not risk losing your customizations.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: the-minimal
Version: 1.0
*/

/* Bricolage Grotesque font files */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("https://bestcarecleaning.co.ke/wp-content/themes/the-minimal-child/fonts/bricolage-grotesque-v9-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("https://bestcarecleaning.co.ke/wp-content/themes/the-minimal-child/fonts/bricolage-grotesque-v9-latin-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("https://bestcarecleaning.co.ke/wp-content/themes/the-minimal-child/fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("https://bestcarecleaning.co.ke/wp-content/themes/the-minimal-child/fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Apply the font globally */
html,
body,
button,
input,
textarea,
select,
optgroup {
    font-family: "Bricolage Grotesque", sans-serif;
}

/* Cover common WordPress and theme elements */
body *,
button,
input,
textarea,
select {
    font-family: inherit;
}



.bc-float-bar{
		position:fixed;
		left:50%;
		bottom:16px;
		transform:translateX(-50%);
		z-index:900;
		display:flex;
		gap:10px;
		background:#fff;
		padding:8px;
		border-radius:100px;
		box-shadow:0 10px 30px rgba(0,0,0,.22);
	}
	.bc-float-btn{
		display:flex;
		align-items:center;
		gap:.5rem;
		padding:.65rem 1.1rem;
		border-radius:100px;
		font-family:inherit;
		font-size:1.2rem;
		font-weight:700;
		color:#fff;
		text-decoration:none;
		white-space:nowrap;
		transition:opacity .15s;
	}
	.bc-float-btn:hover{opacity:.9}
	.bc-float-call{background:#006680}
	.bc-float-wa{background:#25d366}
	/* Below ~360px, shrink to icon-only pills so the bar never overflows */
	@media(max-width:359px){
		.bc-float-btn span{display:none}
		.bc-float-btn{padding:.65rem;}
	}
	@media print{.bc-float-bar{display:none}}

article img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 1rem 0;
}




RESPONSIVE TABLE CSS
/* Responsive Table to Card Layout */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Desktop: Normal table */
@media screen and (min-width: 768px) {
  thead th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  tbody td,
  tbody th {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    text-align: left;
  }

  tbody tr:hover {
    background: #f8f9fa;
  }

  tbody tr:last-child td,
  tbody tr:last-child th {
    border-bottom: none;
  }
}

/* Mobile: Card Layout */
@media screen and (max-width: 767px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide standard table headers on mobile */
  thead {
    display: none;
  }

  /*
   * Hide header-only rows placed inside tbody.
   * This prevents th-only headings from appearing
   * as empty blue or white mobile cards.
   */
  tbody tr:has(> th):not(:has(> td)) {
    display: none;
  }

  /* Style only rows that contain real data cells */
  tbody tr:has(> td) {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
  }

  /* Orange top accent for real data cards only */
  tbody tr:has(> td)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 12px 12px 0 0;
  }

  tbody tr:has(> td):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  /* Data cells and row headers */
  tbody tr:has(> td) th,
  tbody tr:has(> td) td {
    display: flex;
    align-items: flex-start;
    min-height: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f3f4;
  }

  /* Optional row-heading cell style */
  tbody tr:has(> td) th {
    align-self: flex-start;
    flex-shrink: 0;
    margin: 8px 20px 4px;
    padding: 8px 12px;
    background: #fff3e0;
    border: none;
    border-radius: 6px;
    color: #e65100;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }

  /* Standard table data cells */
  tbody tr:has(> td) td {
    flex-direction: column;
    gap: 4px;
    color: #2c3e50;
    font-weight: 500;
  }

  /* Use the td data-label attribute as a mobile label */
  tbody tr:has(> td) td::before {
    content: attr(data-label);
    margin-bottom: 2px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
  }

  tbody tr:has(> td) td:last-child {
    padding-bottom: 20px;
    border-bottom: none;
  }

  /* Status badges */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
  }

  .status-badge.high {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #ef6c00;
  }

  .status-badge.medium {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1976d2;
  }

  .status-badge.low {
    background: #fce4ec;
    border-color: #f8bbd9;
    color: #c2185b;
  }
}

/* Extra-small screens */
@media screen and (max-width: 480px) {
  tbody tr:has(> td) {
    margin-bottom: 12px;
    border-radius: 10px;
  }

  tbody tr:has(> td) th,
  tbody tr:has(> td) td {
    padding: 12px 16px;
  }

  tbody tr:has(> td) th {
    margin-right: 16px;
    margin-left: 16px;
    font-size: 12px;
  }
}

/*
 * 
 * 
 * 
 * 
 * 
 * 
 * /*
 * Best Care Cleaning CTA
 */

.bestcare-cta {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 270px;
    margin: 3rem 0;
    padding: clamp(2rem, 5vw, 3.75rem);
    overflow: hidden;
    isolation: isolate;

    color: #ffffff;
    background-color: #294d97;
    background-image:
        linear-gradient(
            90deg,
            rgba(41, 77, 151, 0.98) 0%,
            rgba(41, 77, 151, 0.94) 42%,
            rgba(41, 77, 151, 0.67) 68%,
            rgba(41, 77, 151, 0.36) 100%
        ),
        url("https://bestcarecleaning.co.ke/wp-content/uploads/2023/02/professional-cleaning-services.jpg");
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, 47% auto;

    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
}

/*
 * Yellow decorative strip.
 */
.bestcare-cta::before {
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 0;
    z-index: 1;
    width: 6px;
    background: #f4c430;
    content: "";
}

/*
 * CTA content.
 */
.bestcare-cta__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.bestcare-cta__eyebrow {
    margin: 0 0 0.55rem;
    color: #f4c430;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bestcare-cta__title {
    max-width: 680px;
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: clamp(1.65rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
}

.bestcare-cta__text {
    max-width: 620px;
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.65;
}

/*
 * Contact buttons.
 */
.bestcare-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.bestcare-cta__button {
    display: inline-flex;
    box-sizing: border-box;
    min-width: 180px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;

    color: #294d97;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
    font-style: normal;
    text-decoration: none;
}

.bestcare-cta__button:hover,
.bestcare-cta__button:focus {
    color: #294d97;
    background: #f4c430;
    border-color: #f4c430;
}

.bestcare-cta__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #294d97;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}

.bestcare-cta__button small,
.bestcare-cta__button strong {
    display: block;
}

.bestcare-cta__button small {
    margin-bottom: 0.2rem;
    color: #5b6782;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bestcare-cta__button strong {
    color: #294d97;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

/*
 * Yellow phone number inside the CTA.
 */
.bestcare-cta__button--call strong {
    color: #d19f00;
    font-size: 0.92rem;
}

/*
 * Different button icon colors.
 */
.bestcare-cta__button--email .bestcare-cta__icon {
    background: #4770bd;
}

.bestcare-cta__button--whatsapp .bestcare-cta__icon {
    background: #1da851;
}

/*
 * Keyboard accessibility without movement or animation.
 */
.bestcare-cta__button:focus-visible {
    outline: 3px solid #f4c430;
    outline-offset: 3px;
}

/*
 * Mobile layout.
 */
@media (max-width: 700px) {
    .bestcare-cta {
        min-height: 420px;
        margin: 2rem 0;
        padding: 2.4rem 1.35rem 2rem;

        background-image:
            linear-gradient(
                180deg,
                rgba(41, 77, 151, 0.98) 0%,
                rgba(41, 77, 151, 0.91) 52%,
                rgba(41, 77, 151, 0.55) 100%
            ),
            url("https://bestcarecleaning.co.ke/wp-content/uploads/2023/02/professional-cleaning-services.jpg");
        background-position: center, center bottom;
        background-size: cover, 100% auto;
    }

    .bestcare-cta::before {
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 5px;
    }

    .bestcare-cta__title {
        font-size: 1.75rem;
    }

    .bestcare-cta__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bestcare-cta__button {
        width: 100%;
        min-width: 0;
    }
}

 