/* BathBright Ideas – Geometric Structured Style CSS
   Author: UI/CSS (Geometric Structured Expert)
   Brand: BathBright Ideas | Modern UK Home DIY
   Brand Colors: #144256 (Primary), #FFFFFF (Secondary), #F5A623 (Accent)
   Display Font: 'Montserrat', Body Font: 'Open Sans'

   CRITICAL: This stylesheet uses ONLY FLEXBOX for all layouts. No CSS grid, no columns, no break-inside/avoid, no clamp().
*/

/* CSS Reset & Normalize */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}
html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #F8F8F8;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F8F8;
  color: #144256;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 24px;
}
a {
  color: #144256;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.39,.58,.57,1),background 0.2s cubic-bezier(.39,.58,.57,1);
}
a:focus {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}
strong {
  font-weight: bold;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #144256;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #144256;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.25rem;
  color: #21637A;
  margin-bottom: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
p, li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #144256;
  margin-bottom: 12px;
}

/* Container and layout */
.container {
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Section Spacing (Mandatory Patterns) */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(20, 66, 86, 0.06), 0 1.5px 8px rgba(33, 99, 122, 0.03);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Flexbox layouts: Card Containers, Grids, Testimonial, etc. */
.card-container, .service-cards, .testimonial-grid, .feature-grid, .card-grid, .content-grid, .team-profiles ul, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.card, .service-card {
  background: #FFFFFF;
  border: 2.5px solid #F8F8F8;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  box-shadow: 0 2px 14px rgba(20, 66, 86, 0.06); 
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s cubic-bezier(.39,.58,.57,1);
}
.service-card {
  border-top: 5px solid #F5A623;
  box-shadow: 0 1.5px 8px rgba(33,99,122,0.06);
}
.card:hover, .service-card:hover {
  box-shadow: 0 3px 36px rgba(33,99,122,0.16);
}

/* Grids */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  justify-content: space-between;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 180px;
  background: #F8F8F8;
  border-radius: 16px;
  border: 2px solid #E4E8EA;
  padding: 26px 22px 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}
.feature-grid li img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(1px 2px 2px #ECECEC);
}

/* Responsive Grids */
@media (max-width: 920px) {
  .feature-grid li, .service-card, .card {
    min-width: 140px;
    flex: 1 1 140px;
  }
}

/* Card-like summary blocks */
.diy-tips-summary, .tool-list, .pricing-summary, .education-corner, .what-to-expect, .faq-snippets, .address-map, .style-guidance, .consultation-process {
  background: #F8F8F8;
  border-left: 4.5px solid #F5A623;
  border-radius: 14px;
  margin-top: 20px;
  margin-bottom: 32px;
  padding: 20px 22px 18px 30px;
  box-shadow: 0 1.5px 8px rgba(245,166,35,0.06);
}

.team-profiles ul {
  gap: 16px;
  flex-direction: column;
}

/* Testimonials */
.testimonial-grid, .testimonial-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}
.testimonial-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 2px solid #F5A623;
  box-shadow: 0 2.5px 10px rgba(20,66,86,0.1);
  padding: 20px 28px;
  margin-bottom: 20px;
  color: #144256;
  max-width: 468px;
  min-width: 260px;
  align-items: flex-start;
  transition: box-shadow 0.2s cubic-bezier(.39,.58,.57,1);
  font-size: 1.07rem;
}
.testimonial-card p {
  color: #144256;
  font-style: normal;
}
.testimonial-card strong {
  color: #144256;
  font-weight: bold;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}
.testimonial-card span {
  color: #21637A;
  font-size: 0.98em;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(33,99,122,0.12);
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Buttons & CTAs */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  background: #F5A623;
  color: #144256;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 10px rgba(245,166,35,0.10);
  margin-top: 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(.39,.58,.57,1), color 0.18s cubic-bezier(.39,.58,.57,1),box-shadow 0.14s;
}
.cta.primary {
  background: #F5A623;
  color: #144256;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #144256;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,166,35,0.20);
}
.cta.secondary {
  background: #FFFFFF;
  color: #144256;
  border: 2px solid #F5A623;
}
.cta.secondary:hover {
  background: #F5A623;
  color: #fff;
}

/* Service Price label */
.service-price {
  display: inline-block;
  background: #21637A;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 0.97rem;
  padding: 3.5px 11px;
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
  letter-spacing: 0.03em;
}

/* Header Navigation */
header {
  background: #144256;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(20, 66, 86, 0.14);
  position: relative;
  z-index: 8;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 20px;
  position: relative;
}
header a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
header nav a {
  padding: 5px 0 5px 0;
  font-size: 1rem;
  transition: color 0.14s;
  position: relative;
}
header nav a:hover, header nav a.active {
  color: #F5A623;
}
header img {
  height: 38px;
  margin-right: 26px;
  min-width: 42px;
}
/* Header CTA Button */
header .cta {
  margin-left: 36px;
  padding: 8px 24px;
  font-size: 1rem;
  background: #F5A623;
  color: #144256;
  border-radius: 8px;
  border: none;
}
header .cta:hover {
  background: #fff;
  color: #144256;
  box-shadow: 0 2px 10px rgba(245,166,35,0.20);
}

/* Hamburger menu (mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #F5A623;
  position: absolute;
  right: 22px;
  top: 19px;
  z-index: 15;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  background: rgba(245,166,35,0.16);
  outline: 2px solid #F5A623;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #144256;
  color: #fff;
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.39,.58,.57,1);
  box-shadow: 4px 0 30px rgba(20,66,86,0.15);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  position: absolute;
  top: 20px;
  right: 32px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.mobile-menu-close:focus {
  background: #21637A;
  outline: 2px solid #F5A623;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  margin-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 11px 0 11px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.19s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #F5A623;
  border-bottom: 2px solid #F5A623;
  background: rgba(245,166,35,0.12);
}

@media (max-width: 990px) {
  header .container nav,
  header .container .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 990px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Main Content Spacing */
main {
  min-height: 70vh;
  padding-top: 32px;
  padding-bottom: 56px;
}

/* Footers */
footer {
  background: #144256;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 30px 0 14px 0;
  margin-top: 40px;
  position: relative;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -2px 8px rgba(20,66,86,0.08);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 3px 0;
  transition: color 0.15s;
}
footer nav a:hover {
  color: #F5A623;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}
.footer-brand img {
  height: 32px;
  width: 32px;
  margin-right: 4px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  margin-left: 2px;
}

/* Responsive Stack for Footer/Nav/Sections */
@media (max-width: 768px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px 14px 8px;
  }
  footer nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-brand {
    margin-top: 10px;
  }
  section, .section {
    padding: 30px 9px;
  }
}

/* Flex Content (Display, Features, Cards) Responsive */
@media (max-width: 768px) {
  .feature-grid, .card-container, .service-cards, .testimonial-grid, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .service-card, .card, .testimonial-card, .feature-grid li {
    min-width: 98px;
    width: 100%;
  }
  .team-profiles ul {
    gap: 10px;
  }
}

/* Text-Image Section (not in starter HTML, for future use) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cards, Content Blocks: Visual Structure */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Address & Contact Blocks */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  font-size: 1.05rem;
}
.contact-details a {
  color: #21637A;
  font-weight: 500;
}
.address-map {
  font-size: 1.03rem;
}

/* Process: Step/FAQ Lists */
.consultation-process ul, .faq-snippets ul, .education-corner ul, .what-to-expect ul {
  margin-top: 13px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.consultation-process h3, .faq-snippets h3, .education-corner h3, .what-to-expect h3 {
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #144256;
}

/* Tables/Lists (not in base HTML) */
table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
th, td { border: 1px solid #ECECEC; padding: 10px 14px; text-align: left; }
th { background: #F8F8F8; font-weight: 600; }

/* Utility: Hide visually */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Animation for mobile menu and modals */
@media (max-width: 990px){
  .mobile-menu {
    transition: transform 0.35s cubic-bezier(.39,.58,.57,1);
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #144256;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 22px 28px;
  font-size: 1rem;
  box-shadow: 0 -2px 18px rgba(20,66,86,0.12);
  gap: 16px;
  transition: transform 0.32s cubic-bezier(.39,.58,.57,1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner-message {
  flex: 1 1 320px;
  font-size: 1rem;
  margin-right: 16px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
  box-shadow: 0 1px 4px rgba(245,166,35,0.18);
}
.cookie-btn.accept {
  background: #F5A623;
  color: #144256;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #21637A;
  color: #fff;
}
.cookie-btn.reject {
  background: #f8f8f8;
  color: #144256;
  border: 2px solid #F5A623;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5A623;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #144256;
  border: 2px solid #21637A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #21637A;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 20px 12px 18px 12px;
    gap: 13px;
    align-items: stretch;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 11px;
    width: 100%;
  }
}

/* Cookie Modal (preferences) */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -58%) scale(1);
  background: #fff;
  color: #144256;
  z-index: 2100;
  border-radius: 14px;
  min-width: 310px;
  max-width: 96vw;
  box-shadow: 0 7px 44px rgba(33,99,122,0.14);
  padding: 38px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.29s, transform 0.36s cubic-bezier(.39,.58,.57,1);
  opacity: 1;
  visibility: visible;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-header {
  font-size: 1.33rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 18px;
  background: transparent;
  color: #144256;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 7px;
}
.cookie-modal-close:focus {
  outline: 2px solid #F5A623;
}
.cookie-categories {
  width: 100%;
  margin-top: 20px;
  gap: 18px;
  display: flex;
  flex-direction: column;
}
.cookie-category {
  background: #F8F8F8;
  border-radius: 9px;
  padding: 12px 16px 13px 16px;
  border-left: 4px solid #21637A;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
.cookie-category .cookie-switch {
  margin-left: 18px;
}
.cookie-switch {
  width: 44px;
  height: 24px;
  background: #ECECEC;
  border-radius: 16px;
  position: relative;
  transition: background 0.18s;
  display: inline-block;
  vertical-align: middle;
}
.cookie-switch input {
  display: none;
}
.cookie-switch-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.cookie-switch-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 14px;
  background: #F5A623;
  transition: left 0.17s, background 0.16s;
}
.cookie-switch input:checked + .cookie-switch-label .cookie-switch-slider {
  left: 22px;
  background: #21637A;
}
/* Essential cookies: no toggle */
.cookie-category.essential .cookie-switch {
  opacity: 0.45;
  pointer-events: none;
}

/* Helper .hide class */
.hide { display: none !important; }

/* Geometric Decorative Accents (no absolute cards; only for deco, some with z-index below 0) */
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -17px; right: -30px;
  width: 80px; height: 80px;
  background: rgba(245,166,35,0.06);
  border-radius: 24% 77% 61% 45% / 70% 43% 60% 41%;
  z-index: 0;
}
@media (max-width: 700px) {
  .section::after {
    display: none;
  }
}

/* Utility - Margins for content separation */
.card, .service-card, .feature-grid li, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > * {
  margin-bottom: 18px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* Misc helpers */
.privacy-list, .policy-list {
  margin-bottom: 18px;
}

/* Font Import (for best compatibility, fallback, but always keep imports separate on live for perf) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm45_QphziTn89dtpQ.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Open Sans'), url('https://fonts.gstatic.com/s/opensans/v29/mem8YaGs126MiZpBA-UFVZ0b.woff2') format('woff2');
}

/* Accessibility: Focus outline for interactive elements */
button:focus, .cta:focus, a:focus {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* Subtle micro-interactions */
.card, .service-card, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.21s cubic-bezier(.39,.58,.57,1),
    transform 0.17s cubic-bezier(.39,.58,.57,1);
}
.card:hover, .service-card:hover, .feature-grid li:hover, .testimonial-card:hover {
  transform: translateY(-6px) scale(1.013);
  box-shadow: 0 7px 30px rgba(33,99,122,0.17);
}

/* Form Elements (future expansion) */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #ECECEC;
  border-radius: 7px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color .15s;
}
input:focus, textarea:focus {
  border-color: #21637A;
  outline: none;
}

/* Hide scroll (decorative only) on open mobile menu */
.mobile-menu.open ~ main, .mobile-menu.open ~ footer {
  filter: blur(2.5px);
  pointer-events: none;
}

/* End BathBright Ideas CSS for Geometric Structured Style */