/* --- 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.5;
  background: #F8FAFC;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23272F;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B263B;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, blockquote { font-size: 1.1rem; line-height: 1.7; margin-bottom: 16px; }
blockquote {
  border-left: 4px solid #F4D35E;
  padding-left: 16px;
  font-style: italic;
  color: #444;
  background: #FCF7E8;
  margin-bottom: 16px;
}

/* --- CONTAINERS & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(34,58,94,0.06);
  padding: 32px;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(115deg, #1B263B 0%, #778DA9 80%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  padding-top: 64px;
  padding-bottom: 64px;
  margin-bottom: 48px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-button {
  margin-top: 18px;
}

/* --- FLEX PATTERNS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(34,58,94,0.04);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: transform 0.17s, box-shadow 0.17s;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 32px -2px rgba(34,58,94,0.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(34,58,94,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(34,58,94,0.11);
  transform: translateY(-4px) scale(1.02);
}

.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: #FCF7E8;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(34,58,94,0.04);
  margin-bottom: 20px;
  color: #23272F;
  flex-direction: column;
  min-width: 220px;
}
.testimonial-card blockquote {
  margin-bottom: 12px;
  color: #23272F;
  font-size: 1.13rem;
  background: none;
}
.testimonial-details cite {
  font-weight: 600;
  color: #1B263B;
}
.testimonial-details span {
  font-size: 0.98rem;
  margin-left: 8px;
  color: #4C5B73;
}

/* --- TEAM & BLOG LISTS --- */
.team-list, .blog-list, .job-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-member, .blog-item, .job-listings li, .case-study {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(34,58,94,0.03);
  padding: 20px 18px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.12s;
}
.team-member:hover, .blog-item:hover, .job-listings li:hover, .case-study:hover {
  box-shadow: 0 7px 24px 0 rgba(34,58,94,0.09);
  transform: scale(1.015);
}
.blog-item span {
  font-size: 0.98rem;
  color: #778DA9;
  background: #F8FAFC;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 6px;
  align-self: flex-start;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.blog-categories li {
  background: #EAF0F7;
  color: #486084;
  border-radius: 6px;
  padding: 5px 16px;
  font-size: 1rem;
  font-weight: 600;
}

.case-study {
  border-left: 5px solid #F4D35E;
  margin-bottom: 0;
}

/* --- NAVIGATION & HEADER --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(34,58,94,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 990;
  min-height: 64px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
header nav a {
  color: #1B263B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 1.11rem;
  font-weight: 600;
  opacity: 0.92;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background 0.17s, color 0.18s;
}
header nav a:hover, header nav a.active {
  background: #EAF0F7;
  color: #F4D35E;
}
header .cta-button {
  margin-left: 24px;
}

/* --- CTA BUTTONS --- */
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: linear-gradient(95deg, #F4D35E 10%, #FFDA1A 80%);
  color: #1B263B;
  padding: 13px 34px;
  border-radius: 24px;
  border: none;
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(244,211,94,0.13);
  cursor: pointer;
  display: inline-block;
  transition: background 0.23s, color 0.22s, box-shadow 0.21s, transform 0.13s;
}
.cta-button:hover, .cta-button:focus {
  background: #FFC300;
  color: #1B263B;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px 0 rgba(244,211,94,0.15);
}

/* --- FOOTER --- */
footer {
  background: #1B263B;
  color: #fff;
  padding: 48px 0 32px 0;
  margin-top: 60px;
  border-radius: 32px 32px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #F4D35E;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0.88;
  transition: opacity 0.15s;
}
.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  color: #D7DFEA;
  font-size: 1.06rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
  margin-top: 12px;
}
.footer-brand img {
  width: 48px;
  height: auto;
}
.footer-brand span {
  font-size: 0.92rem;
  color: #B9C7DC;
}

/* --- ADDRESS & CONTACT BLOCKS --- */
.address-block, .contact-block, .email-block, .hours-block, .map-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #23314D;
  font-size: 1.08rem;
}
.map-block span {
  font-size: 0.92rem;
  color: #778DA9;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23272F;
  color: #fff;
  z-index: 1800;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 -2px 16px 0 rgba(27,38,59,0.09);
  transition: transform 0.3s;
}
.cookie-banner.hide { transform: translateY(140%); }
.cookie-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 1050px;
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  font-size: 1.07rem;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cta-button {
  background: #F4D35E;
  color: #1B263B;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-banner button:hover { background: #FFC300; }
.cookie-settings {
  background: #EAF0F7;
  color: #1B263B;
  padding: 9px 22px;
  border-radius: 18px;
  font-weight: 700;
  border: none;
  margin-left: 6px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-settings:hover { background: #F4D35E; color: #1B263B; }

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 2500;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center; justify-content: center;
  background: rgba(27,38,59,0.45);
  animation: fadein 0.3s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(34,58,94, 0.15);
  padding: 38px 24px 24px 24px;
  min-width: 340px;
  max-width: 96vw;
  color: #252C40;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.34rem;
  background: transparent;
  border: none;
  color: #486084;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category input[type='checkbox'] {
  accent-color: #F4D35E;
}
.cookie-category .cookie-essential {
  font-weight: 700;
  color: #1B263B;
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 13px;
  font-size: 1rem;
  padding: 7px 16px;
}

/* --- MOBILE MENU (BURGER NAV) --- */
.mobile-menu-toggle {
  background: #EAF0F7;
  border: none;
  color: #1B263B;
  font-size: 2rem;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  display: none;
  z-index: 1201;
  transition: background 0.17s, color 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F4D35E;
  color: #1B263B;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #23272F;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.5,.24,.22,1.02);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 30px 20px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #F4D35E;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover {
  color: #FFD600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 13px 0;
  border-radius: 6px;
  transition: background 0.1s, color 0.16s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-nav a:hover {
  background: #F4D35E;
  color: #1B263B;
}

/* --- CONTENT SPACING (MANDATORY GAP) --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .team-list, .blog-list, .content-grid, .feature-grid, .job-listings {
  gap: 24px;
}
.card, .team-member, .blog-item, .case-study, .job-listings li, .testimonial-card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}

/* --- VISUAL HIERARCHY & TYPOGRAPHY SCALE --- */
:root {
  --brand-primary: #1B263B;
  --brand-secondary: #778DA9;
  --brand-accent: #F4D35E;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 100vw; }
}
@media (max-width: 960px) {
  .hero, footer { border-radius: 0; }
  .feature-grid, .content-grid, .card-container, .team-list, .blog-list, .job-listings {
    flex-direction: column;
  }
  .feature-item, .card, .team-member, .blog-item, .case-study, .job-listings li {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .hero { padding-top: 40px; padding-bottom: 40px; }
  header {
    flex-direction: row;
    padding: 13px 12px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container { padding: 0 10px; }
  .text-section { padding: 20px; }
  section, .section { padding: 28px 8px; }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding-left: 12px;
  }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.11rem; }
  p, blockquote { font-size: 1rem; }
  .feature-grid, .content-grid, .blog-categories, .team-list, .blog-list, .job-listings {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    align-items: flex-start;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
button, .cta-button, .feature-item, .card, .team-member, .blog-item, .case-study, .job-listings li {
  transition: box-shadow 0.17s, transform 0.15s;
}
a {
  transition: color 0.18s, background 0.16s;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: #EAF0F7;
}
::-webkit-scrollbar-thumb {
  background: #778DA9;
  border-radius: 8px;
}

/* --- MISC --- */
strong { font-weight: 700; color: #1B263B; }

/* --- HIGH CONTRAST FOR ACCESSIBILITY (testimonials & review) --- */
.testimonial-card, .testimonial-card blockquote {
  color: #23272F;
  background: #FCF7E8;
  box-shadow: 0 2px 10px 0 rgba(27,38,59,0.05);
}

/* --- Utility classes for hiding/showing --- */
.hide { display: none !important; }

/* --- END OF STYLE.CSS --- */
