/* Pearly Brook AI Solutions – ELEGANT CLASSIC CSS */
/* 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F3F5F7;
  color: #232326;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
/* Custom Properties for Brand Colors */
:root {
  --primary: #243771;
  --secondary: #15B5B0;
  --accent: #F3F5F7;
  --text: #232326;
  --muted: #575652;
  --white: #fff;
  --card-bg: #fff;
  --shadow: 0 2px 16px rgba(36, 55, 113, 0.07);
  --radius: 12px;
}

/* Elegant Classic Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Crimson+Text:wght@400;700&display=swap');
body {
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 16px;
  background: var(--accent);
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, Serif;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
p, ul, ol {
  margin-bottom: 16px;
  color: var(--muted);
}
strong, b {
  color: var(--primary);
  font-weight: 700;
}

/* Container and Section Spacing */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  background: transparent;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(36, 55, 113, 0.09);
  border-bottom: 1px solid #e6e8ea;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 12px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 17px;
  color: var(--primary);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.cta-btn {
  background: var(--primary);
  color: var(--white);
  font-family: 'Playfair Display', Georgia, Serif;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 11px 30px;
  margin-left: 18px;
  box-shadow: 0 2px 14px rgba(36, 55, 113, 0.08);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.19s, color 0.19s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 16px rgba(21, 181, 176, 0.13);
  outline: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 13px;
  z-index: 101;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
  background: #e7eceb;
  border-radius: 50%;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.86,.1,.27,1.01);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  box-shadow: 0 4px 40px rgba(36,55,113,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--primary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 80px;
  gap: 20px;
  padding: 10px 40px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Playfair Display', Georgia, Serif;
  font-size: 1.2rem;
  width: 100%;
  padding: 14px 8px;
  border-radius: var(--radius);
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Hide desktop nav on mobile, show burger/collapse on desktop */
@media (max-width: 992px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Section Spacings & Content Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px rgba(36, 55, 113, 0.16);
  z-index: 2;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(36,55,113,0.07);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 280px;
  color: var(--text);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-family: 'Crimson Text', Georgia, Serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid (for Features, Industry, Tech) */
.feature-grid, .industry-grid, .tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0;
  width: 100%;
}
.feature-grid > div, .industry-grid > div, .tech-grid > div {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  flex: 1 1 230px;
  min-width: 230px;
  transition: box-shadow 0.19s, transform 0.19s;
  position: relative;
}
.feature-grid > div:hover, .industry-grid > div:hover, .tech-grid > div:hover {
  box-shadow: 0 4px 26px rgba(21,181,176,0.13);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  height: 42px;
  margin-bottom: 9px;
}

/* Text and Section Elements */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.team-highlight, .skills-highlight {
  background: #f8fafb;
  padding: 12px 16px;
  border-left: 4px solid var(--secondary);
  font-style: italic;
  color: var(--primary);
  border-radius: var(--radius);
}
.usp-list, .benefits-overview {
  background: #f4f4f8;
  border-radius: var(--radius);
  padding: 14px 20px 10px 20px;
  margin: 20px 0 0 0;
  box-shadow: 0 1px 6px rgba(36,55,113,0.03);
}
.usp-list h3, .benefits-overview h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Blog Styles */
.blog-list {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-list input[type=search] {
  padding: 9px 17px;
  border: 1px solid #dad9d6;
  background: #fafafb;
  border-radius: var(--radius);
  font-size: 1.07rem;
  font-family: inherit;
  max-width: 270px;
  margin-bottom: 12px;
  box-shadow: none;
}
.category-filter {
  margin-bottom: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 1.02rem;
}
.featured-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 25px;
}
.featured-post h2 {
  color: var(--secondary);
  font-size: 1.8rem;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 1.07rem;
  color: var(--primary);
}
.author-info img {
  height: 32px;
}

/* Legal Pages */
.legal-text {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(36,55,113,0.05);
  padding: 28px 28px 18px 28px;
  font-size: 1.09rem;
}
.legal-text ul li { margin-bottom: 10px; }

/* Contact Page */
.contact-details p {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: var(--muted);
}
.contact-details img {
  height: 18px;
  margin: 0 3px -3px 0 !important;
  vertical-align: baseline;
}
.map {
  margin-top: 18px;
  font-style: italic;
  color: var(--primary);
}

/* Links & Button Variants */
.btn-link {
  color: var(--secondary);
  background: none;
  border: none;
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 1.08rem;
  padding: 0 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.14s;
}
.btn-link:hover, .btn-link:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer */
footer {
  background: #f7f7fa;
  border-top: 1px solid #e3e7ee;
  padding: 36px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Crimson Text', Georgia, Serif;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  color: var(--muted);
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img {
  height: 18px;
  margin: 0 3px -3px 0 !important;
  vertical-align: baseline;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e6e8ea;
  box-shadow: 0 -2px 18px rgba(36,55,113,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  z-index: 9999;
  gap: 24px;
  transition: transform 0.25s;
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 1.09rem;
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner-text {
  color: var(--primary);
  flex: 1 1 auto;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Crimson Text', Georgia, Serif;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 8px 21px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  box-shadow: 0 1px 4px rgba(36,55,113,0.07);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-btn.reject {
  background: #e8e8ea;
  color: var(--primary);
  border: 1px solid #dadada;
}
.cookie-btn.settings {
  background: #f5f5fa;
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,55,113,0.18);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 44px rgba(36,55,113,0.15);
  padding: 34px 38px 26px 38px;
  min-width: 320px;
  max-width: 92vw;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Crimson Text', Georgia, Serif;
  color: var(--primary);
  animation: fadeInModal 0.29s cubic-bezier(.49,.1,.37,1.18);
}
@keyframes fadeInModal {
  0% { transform: translateY(25px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: var(--secondary);
  margin-bottom: 13px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 15px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
  margin-top: 1px;
}
.cookie-category .essential {
  color: var(--secondary);
  font-style: italic;
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 17px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 2rem;
  background: none; border: none;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--primary);
  outline: none;
}

/* Utility Classes & Details */
ul, ol { padding-left: 18px; }
li { margin-bottom: 8px; }
::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #babeca; opacity: 1; }

/* Cards and Misc */
.card {
  border: 1px solid #ececf1;
}

/* Client Logos (on Branchen page) */
.client-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.client-logos img {
  height: 38px;
  width: auto;
  background: #fff;
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid #e4e8f0;
}

/* Case Study Highlights */
.case-study-highlights ul {
  padding-left: 0;
}
.case-study-highlights li {
  margin-bottom: 15px;
  background: #f6f7fa;
  padding: 13px 13px 11px 19px;
  border-radius: 7px;
  box-shadow: 0 1px 8px rgba(21,181,176,0.02);
  border-left: 3px solid var(--secondary);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .feature-grid > div, .industry-grid > div, .tech-grid > div {
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
.menu-toggle,
.main-nav,
.cta-btn { font-size: 1rem; }
  .container { padding: 0 10px; }
  .section { padding: 29px 8px; margin-bottom: 38px; }
  .card-container, .content-grid {
    gap: 14px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .industry-grid, .tech-grid {
    gap: 15px;
    flex-direction: column;
  }
  .feature-grid > div, .industry-grid > div, .tech-grid > div {
    min-width: 0;
    padding: 18px 14px 15px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 17px 10px;
  }
  .footer-contact {
    font-size: 0.98em;
    gap: 3px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    gap: 8px; font-size: 0.95rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .cookie-banner { flex-direction: column; gap: 8px; padding: 11px 10px; font-size: 0.95rem; }
  .cookie-banner-actions { flex-direction: column; gap: 9px; }
  .cookie-modal { padding: 16px 8px 17px 13px; min-width: 0; }
}

/* Animations */
.cta-btn, .btn-link, .main-nav a, .card, .cookie-btn, .mobile-nav a, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.2s, color 0.19s, box-shadow .18s, transform .17s;
}
.cta-btn:active,
.main-nav a:active,
.btn-link:active,
.mobile-nav a:active,
.cookie-btn:active {
  transform: scale(0.98);
}

/* Accessibility: Focus Rings */
a:focus, button:focus, .cta-btn:focus, .btn-link:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Misc */
.next-steps h2 { color: var(--secondary); font-size: 1.17rem; margin-bottom: 8px; }
.next-steps ul li { color: var(--muted); font-size: 1.03rem; margin-bottom: 8px; }
.subheadline { color: var(--secondary); font-size: 1.18rem; margin-bottom: 15px; font-family: 'Crimson Text', Georgia, Serif; }

/* Hide unwanted overflow from mobile menu */
body.mobile-menu-open { overflow: hidden !important; }
