/* =======================================================
   Radiant Bluff Professional Corporate CSS (Flexbox Only)
   ======================================================= */

/* ========== RESET & BASE ========== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f6f8fa;
  color: #182948;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #182948;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #59B9B8;
}
ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}
hr {
  border: none;
  border-top: 1px solid #e0e4ee;
  margin: 32px 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #182948;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, .content-wrapper > ul, .content-wrapper > ol {
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
}

/* ========== CONTAINER & WRAPPERS ========== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(24,41,72,0.03);
}

/* ========== HEADER: Desktop & Mobile Menu ========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,41,72,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.logo img{
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  color: #182948;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  transition: color .17s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: #59B9B8;
  border-bottom: 2px solid #59B9B8;
}
.cta-button {
  background: #59B9B8;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border-radius: 7px;
  transition: background .15s, box-shadow .16s, transform .16s;
  box-shadow: 0 4px 8px rgba(89,185,184,.14);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  margin-left: 22px;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #182948;
  color: #FFD83F;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(24,41,72,0.14);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #182948;
  margin-left: auto;
  cursor: pointer;
  z-index: 200;
  position: relative;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: #182948;
  color: #fff;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 38px 24px 24px 24px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color .15s;
  width: 100%;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD83F;
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
  }
  .cta-button {
    margin-left: 10px;
    padding: 12px 16px;
  }
}
@media (max-width: 900px) {
  .logo img {
    height: 36px;
  }
}
@media (max-width: 920px) {
  header .container {
    gap: 10px;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 840px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========== SECTIONS, FLEX PATTERNS, CARDS ========== */
.feature-grid, .team-grid, .service-overview-list, .case-study-teasers, .blog-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature, .team-member, .service-category, .case-study, .blog-card {
  background: #f5f7fb;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(24,41,72,0.05);
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 265px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .15s;
}
.feature:hover, .team-member:hover, .service-category:hover, .case-study:hover, .blog-card:hover {
  box-shadow: 0 6px 24px rgba(24,41,72,0.13);
  transform: translateY(-3px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24,41,72,0.05);
  border-radius: 12px;
  padding: 32px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.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;
    gap: 18px;
  }
}

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

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  background: #fff; 
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(24,41,72,0.08);
  min-width: 260px;
  flex: 1 1 275px;
  color: #182948;
  font-size: 1.1rem;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .15s;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #59b9b8;
  margin-left: 0.1em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 24px rgba(24,41,72,0.15);
  transform: translateY(-2px) scale(1.02);
}

.client-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  margin-top: 10px;
}

.icon-grid, .icon-row, .certification-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin: 18px 0 20px 0;
}
.infographic-points {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.infographic-points > div {
  background: #e5eff1;
  border-radius: 11px;
  padding: 16px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #182948;
  box-shadow: 0 2px 8px rgba(89,185,184,0.05);
  font-size: 1rem;
}

/***** Blog, Cards, CTA banner *****/
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.topic-filters button {
  background: #fff;
  color: #182948;
  border: 1.5px solid #59b9b8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 7px 25px;
  cursor: pointer;
  transition: background .18s, color .15s, border-color .16s;
}
.topic-filters button:hover, .topic-filters button:focus {
  background: #59b9b8;
  color: #fff;
  border-color: #182948;
}

.blog-card {
  min-width: 210px;
}
.blog-card a {
  margin-top: 10px;
  color: #59b9b8;
  font-weight: 600;
  transition: color .12s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.blog-card a:hover, .blog-card a:focus {
  color: #FFD83F;
  text-decoration: underline;
}

.cta-banner {
  background: #59b9b8;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 20px rgba(24,41,72,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  margin: 18px 0;
  gap: 20px;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}

/***** Contact details *****/
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 18px;
}
.contact-details > div {
  background: #e5eff1;
  border-radius: 9px;
  padding: 13px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.location-map {
  margin-top: 10px;
  margin-bottom: 10px;
}

/***** Misc Cards and Lists *****/
.metrics ul, .bio-snippets, .history-highlights {
  margin-top: 15px;
  margin-bottom: 10px;
}
.service-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0 0;
}
.service-category-tabs button {
  background: #fff;
  color: #182948;
  border: 1.5px solid #59b9b8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 7px 20px;
  cursor: pointer;
  transition: background .18s, color .15s;
}
.service-category-tabs button:hover, .service-category-tabs button:focus {
  background: #59b9b8;
  color: #fff;
  border-color: #182948;
}

/***** Cards General *****/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/***** General Button Styles *****/
button, .cta-button, input[type="submit"] {
  outline: none;
  border: none;
  font-family: inherit;
}
button:active, .cta-button:active {
  transform: scale(.97);
}

/***** White & Accent Backgrounds *****/
.white-bg, .bg-white {
  background: #fff;
  color: #182948;
}
.bg-accent {
  background: #FFD83F;
  color: #182948;
}

/* ========== FOOTER ========== */
footer {
  background: #182948;
  color: #fff;
  padding: 38px 0 21px 0;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col {
  flex: 1 1 212px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col img {
  width: 160px;
  margin-bottom: 9px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #e3edf6;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color .13s;
}
.footer-col a:hover, .footer-col a:focus {
  color: #FFD83F;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links a {
  background: #59B9B8;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.social-links a:hover {
  background: #FFD83F;
  transform: scale(1.13);
}
.social-links img {
  width: 22px;
  height: 22px;
  display: block;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: #fff;
  color: #182948;
  box-shadow: 0 -2px 16px rgba(24,41,72,0.11);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-top: 2px solid #59B9B8;
  transition: transform 0.30s, opacity 0.28s;
}
.cookie-banner.hide {
  transform: translateY(160%) !important;
  opacity: 0 !important;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 0;
  max-width: 600px;
}
.cookie-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-action-list button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 7px;
  border: 1.5px solid #59B9B8;
  background: #fff;
  color: #182948;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .17s, color .16s, border .15s;
}
.cookie-action-list button.cookie-accept {
  background: #59B9B8;
  color: #fff;
  border-color: #59B9B8;
}
.cookie-action-list button.cookie-accept:hover, .cookie-action-list button.cookie-accept:focus {
  background: #182948;
  color: #FFD83F;
  border-color: #182948;
}
.cookie-action-list button.cookie-reject {
  background: #FFD83F;
  color: #182948;
  border-color: #FFD83F;
}
.cookie-action-list button.cookie-reject:hover, .cookie-action-list button.cookie-reject:focus {
  background: #59B9B8;
  color: #fff;
  border-color: #59B9B8;
}
.cookie-action-list button.cookie-settings {
  background: #fff;
  color: #182948;
  border-color: #59B9B8;
}
.cookie-action-list button.cookie-settings:hover, .cookie-action-list button.cookie-settings:focus {
  background: #e5eff1;
  color: #182948;
  border-color: #182948;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,41,72,0.38);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: background .21s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-dialog {
  background: #fff;
  padding: 34px 27px 30px 27px;
  border-radius: 13px;
  width: 94vw;
  max-width: 430px;
  min-width: 260px;
  box-shadow: 0 6px 36px rgba(24,41,72,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fade-in .21s linear;
}
.cookie-modal-dialog h2 {
  margin-bottom: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 1.4rem;
  background: none;
  color: #182948;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #182948;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #e5eff1;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1.5px solid #59B9B8;
  transition: background .16s, border .14s;
}
.cookie-toggle:checked {
  background: #59B9B8;
  border-color: #59B9B8;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left .17s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-category[disabled] {
  opacity: 0.65;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1000px) {
  .container {
    max-width: 920px;
    padding: 0 14px;
  }
  .footer-wrapper {
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
  .section {
    padding: 26px 4px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .feature-grid, .team-grid, .service-overview-list, .case-study-teasers, .blog-card-list, .client-logo-row {
    gap: 12px;
  }
  .cta-banner {
    padding: 19px 5px;
    border-radius: 9px;
    gap: 11px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer-col {
    min-width: 0;
    width: 100%;
  }
  .icon-grid, .icon-row {
    gap: 14px;
  }
  .infographic-points {
    gap: 15px;
  }
  .contact-details {
    gap: 13px;
    flex-direction: column;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .testimonial-card, .feature, .team-member, .blog-card {
    padding: 14px 8px;
    min-width: unset;
  }
  .client-logo-row img {
    max-width: 78px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 7px;
    font-size: .93rem;
    align-items: flex-start;
  }
  .cookie-action-list {
    gap: 8px;
    width: 100%;
    flex-direction: column;
  }
  .cookie-modal-dialog {
    padding: 18px 6px 14px 8px;
    min-width: 0;
  }
}

/* =========== ANIMATION UTILS =========== */
.fade-in {
  animation: fade-in .22s cubic-bezier(.18,.82,.29,1) both;
}
/* ========== END OF FILE ========== */
