/* ----------------------------
   CSS RESET & NORMALIZE
---------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #184E77;
  text-decoration: none;
  transition: color .25s;
}
a:focus {
  outline: 2px dashed #184E77;
  outline-offset: 2px;
}
ul, ol { list-style: none; margin: 0 0 1.2em 0; }
img { max-width: 100%; height: auto; border: 0; display:inline-block; vertical-align: middle; }

/* ----------------------------
   TYPOGRAPHY
---------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .01em;
  color: #151515;
  font-weight: 600;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 5px;
}
p, li, dl, dt, dd {
  color: #343434;
  font-size: 1rem;
  margin-bottom: 0.7em;
}
strong { font-weight: 700; }
.text-section {
  font-size: 1.06rem;
  color: #232323;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ----------------------------
   LAYOUT & CONTAINER
---------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
main {
  min-height: 60vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
/* For testimonial cards specifically */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.team .content-wrapper {
  flex-direction: column;
}
.blog-list, .faq-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

/*-----------------------------
   FLEX PATTERNS & GRIDS
-----------------------------*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(20,20,20,0.06);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .25s;
  flex: 1 1 320px;
  min-width: 280px;
  padding: 32px 24px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(24,78,119,0.11);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  background: #F7F7F9;
  border-left: 5px solid #184E77;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(32,32,32,0.04);
  min-width: 260px;
  max-width: 375px;
  flex: 1 1 260px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-style: italic;
  color: #181818;
  font-size: 1.09rem;
  margin-bottom: 0.4em;
}
.testimonial-meta {
  font-size: .99rem;
  color: #444;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.service {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(20,20,20,0.06);
  padding: 26px 24px;
  flex: 1 1 240px;
  min-width: 240px;
  transition: box-shadow .18s;
  margin-bottom: 20px;
}
.service:hover {
  box-shadow: 0 6px 22px rgba(24,78,119,0.13);
}

.feature {
  background: #FAFAFA;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,35,35,0.04);
  padding: 24px 20px;
  flex: 1 1 210px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .22s;
}
.feature:hover {
  box-shadow: 0 6px 20px rgba(88,88,88,0.11);
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.faq-question {
  background: #F6F6F8;
  border-left: 4px solid #184E77;
  border-radius: 10px;
  padding: 20px 18px;
  flex: 2 1 280px;
  margin-bottom: 20px;
}

/*-----------------------------
   BUTTONS & CALLS TO ACTION
-----------------------------*/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-top: 15px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .22s, color .22s, box-shadow .22s, border .13s;
  min-width: 160px;
  min-height: 46px;
  box-shadow: 0 2px 10px rgba(24,78,119,0.04);
  outline: none;
}
.cta.primary {
  background: #151515;
  color: #fff;
  border: 2px solid #151515;
}
.cta.primary:hover, .cta.primary:focus {
  background: #fff;
  color: #151515;
  border-color: #151515;
  box-shadow: 0 3px 18px rgba(24,24,24,0.14);
  text-decoration: none;
}
.cta.secondary {
  background: #fff;
  color: #151515;
  border: 2px solid #444;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #151515;
  color: #fff;
  border-color: #151515;
}

button, .button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 24px;
  cursor: pointer;
  border: none;
  padding: 10px 26px;
  background: #151515;
  color: #fff;
  transition: background .2s, color .2s, box-shadow .18s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #fff;
  color: #151515;
  border: 2px solid #184E77;
  box-shadow: 0 2px 16px rgba(24,78,119,0.11);
}

/*-----------------------------
   HEADER & NAVIGATION
-----------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #E3E3E6;
  position: relative;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background .19s, color .15s;
}
header nav a:hover, header nav a:focus {
  background: #232323;
  color: #fff;
  text-decoration: none;
}
header nav a.cta.primary {
  background: #184E77;
  color: #fff;
  border-radius: 25px;
  padding: 9px 26px;
  font-weight: 700;
  border: 2px solid #184E77;
  margin-left: 14px;
  box-shadow: 0 2px 10px rgba(24,78,119,0.11);
  transition: background .17s, color .18s, border .19s, box-shadow .17s;
}
header nav a.cta.primary:hover, header nav a.cta.primary:focus {
  background: #fff;
  color: #184E77;
  border-color: #184E77;
  box-shadow: 0 4px 24px rgba(88,124,184,0.19);
}

header img[alt*="PebPlex"] {
  max-height: 40px;
  width: auto;
}

/*-----------------------------
   MOBILE NAVIGATION STYLES
-----------------------------*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #151515;
  font-size: 2.3rem;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background .14s;
  z-index: 1202;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #184E77;
}
@media (max-width: 1100px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 1100px) {
  .mobile-menu {
    display: block;
  }
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 24, 24, 0.84);
  z-index: 1400;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.75, .11, .26, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 22px;
  background: #fff;
  color: #222;
  border: none;
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 2px 18px;
  z-index: 1501;
  cursor: pointer;
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #184E77;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 92px 0 0 0;
  padding: 0 30px;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  color: #fff;
  background: none;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  min-width: 200px;
  transition: background .16s, color .16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #151515;
}

/*-----------------------------
   HERO SECTIONS
-----------------------------*/
.hero {
  background: #18181A;
  color: #fff;
  padding: 68px 0 60px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 650px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(24,24,24,0.08);
  padding: 42px 32px 38px 32px;
  align-items: flex-start;
}
.hero h1,
.hero p {
  color: #fff;
}
.hero .cta.primary {
  margin-top: 24px;
  background: #fff;
  color: #151515;
  border-color: #fff;
  font-size: 1.09rem;
  font-weight: 600;
}
.hero .cta.primary:hover,
.hero .cta.primary:focus {
  background: #151515;
  color: #fff;
  border-color: #fff;
}

/*-----------------------------
   FOOTER
-----------------------------*/
footer {
  background: #191A1B;
  color: #EDEDED;
  padding: 44px 0 24px 0;
  width: 100%;
  box-sizing: border-box;
  border-top: 2px solid #232323;
  font-size: 1rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-main > div {
  min-width: 235px;
  max-width: 390px;
}
footer img[alt*="PebPlex"] {
  max-width: 120px;
  margin-bottom: 12px;
}
footer .text-section {
  color: #E3E3E6;
  margin-bottom: 18px;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.brand-contact {
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-contact a, .brand-contact div {
  display: flex;
  align-items: center;
  color: #F9F9F9;
  text-decoration: none;
  gap: 7px;
  margin-bottom: 5px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.brand-contact a:hover, .brand-contact a:focus {
  text-decoration: underline;
  color: #fff;
}
.brand-contact img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin-top: 18px;
}
.footer-nav a {
  color: #EDEDED;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

/*-----------------------------
   COOKIE CONSENT BANNER
-----------------------------*/
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #161617;
  color: #fff;
  padding: 24px 22px 18px 22px;
  z-index: 20001;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.21);
  width: 100vw;
  gap: 18px;
  animation: fadeInUp .6s both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(32px);}
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.cookie-btn, .cookie-consent-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 18px;
  padding: 10px 24px;
  border: none;
  background: #191A1B;
  color: #fff;
  border: 2px solid #232323;
  cursor: pointer;
  transition: background .19s, color .19s, border .13s;
}
.cookie-btn.accept {
  background: #184E77;
  border-color: #184E77;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #fff;
  color: #184E77;
}
.cookie-btn.reject {
  background: #fff;
  color: #151515;
  border-color: #151515;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #232323;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border-color: #444;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #151515;
  color: #fff;
}
/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  min-width: 322px;
  max-width: 96vw;
  background: #fff;
  color: #1a1a1a;
  z-index: 20201;
  border-radius: 18px;
  box-shadow: 0 6px 44px rgba(20, 20, 20, 0.22);
  animation: fadeInScale .37s cubic-bezier(.73,.2,.18,1) both;
  padding: 38px 34px 28px 34px;
}
.cookie-modal.open {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.8); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #151515;
  font-weight: 600;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid #E3E3E6;
}
.cookie-category label {
  font-size: 1rem;
  color: #1d1d1d;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #D3D3D5;
  border-radius: 12px;
  position: relative;
  outline: none;
  margin-left: 6px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle:checked {
  background: #184E77;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .18s;
}
.cookie-toggle:checked:before {
  left: 17px;
  background: #fff;
}
.cookie-modal-buttons {
  display: flex;
  gap: 21px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 10px 22px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 20px;
  background: #fff;
  color: #151515;
  border: none;
  font-size: 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .17s, color .17s;
  padding: 2px 14px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #232323;
  color: #fff;
}

/*-----------------------------
   RESPONSIVE DESIGN
-----------------------------*/
@media (max-width: 980px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero .content-wrapper {
    padding: 30px 8px 22px 8px;
  }
  .footer-main {
    gap: 24px;
  }
}
@media (max-width: 850px) {
  .content-wrapper, .features-grid, .card-container, .blog-list, .faq-list, .services-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-main {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  .hero {
    padding: 36px 0 38px 0;
  }
  .hero .container {
    padding: 0 6px;
  }
  .content-wrapper, .features-grid, .card-container, .content-grid, .blog-list, .faq-list, .services-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 20px 10px;
  }
  .feature {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .service {
    width: 100%;
    min-width: 0;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 20px 0 26px 0;
  }
  .hero .content-wrapper {
    padding: 14px 2px 14px 2px;
  }
  .section {
    padding: 14px 3px;
    margin-bottom: 20px;
  }
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
}

/*-----------------------------
   ANIMATIONS + MICROINTERACTIONS
-----------------------------*/
.card, .feature, .service, .testimonial-card, .faq-question {
  transition: box-shadow .23s, transform .19s;
}
.card:hover, .feature:hover, .service:hover, .testimonial-card:hover, .faq-question:hover {
  box-shadow: 0 6px 28px rgba(24,78,119,0.13);
  transform: translateY(-2px) scale(1.02);
}
.cta, .button {
  transition: background .19s, color .17s, border .13s, box-shadow .18s, transform .14s;
}
.cta:hover, .cta:focus, .button:hover, .button:focus {
  transform: scale(1.045);
  box-shadow: 0 4px 18px rgba(24,78,119,0.15);
}

/*-----------------------------
   SCROLLBAR STYLING
-----------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #f3f3f3;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #232323;
  border-radius: 6px;
}

/*-----------------------------
   MISCELLANEOUS
-----------------------------*/
::-moz-selection {
  background: #191A1B;
  color: #fff;
}
::selection {
  background: #191A1B;
  color: #fff;
}

summary {
  cursor: pointer;
}

/* FOCUS indicators for accessibility */
a:focus-visible,
.cta:focus-visible,
.button:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 2px dashed #184E77;
  outline-offset: 2px;
}

/*********************************
   ENSURE MINIMUM MARGIN BETWEEN ALL CARDS/SECTIONS
*********************************/
.section + .section, .card + .card, .testimonial-card + .testimonial-card, .feature + .feature, .service + .service {
  margin-top: 20px;
}

/*********************************
   SPECIAL LISTS (FAQ, BLOG)
*********************************/
.faq-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

/*********************************
   PRINT + NO-OVERFLOW
*********************************/
html, body {
  overflow-x: hidden;
}
.main {
  overflow-x: hidden;
}

/*********************************
   MAKE COOKIE MODAL SCROLLABLE IF NEEDED
*********************************/
@media (max-width: 390px) {
  .cookie-modal {
    min-width: 98vw;
    padding: 14px 2px 12px 2px;
    font-size: .93rem;
  }
}
