/* =================== 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: #F2F6FA;
  color: #223F5A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; border: none; display: block; }
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

/* =================== CSS VARIABLES =================== */
:root {
  --primary: #223F5A;
  --secondary: #8CB6D9;
  --accent: #F2F6FA;
  --brand-orange: #FFA85F;
  --brand-yellow: #FFE5B4;
  --brand-pale: #FEF8F2;
  --brand-coral: #E9635A;
  --text-main: #223F5A;
  --text-dark: #1a2736;
  --text-light: #fff;
  --shadow: 0 2px 12px 0 rgba(34,63,90,0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 6px;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4 {
  color: var(--primary);
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 18px; line-height: 1.25; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, li, span, dl, dd, dt {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.7em;
}
strong, b { color: var(--primary); font-weight: 700; }
em { color: var(--brand-coral); font-style: italic; }

/* ========== GENERAL LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =================== SPACING & SECTIONS =================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== Mandatory Flexbox Card Patterns ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 0 280px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(34,63,90,0.12);
}
.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: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =================== HEADER =================== */
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 990;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
}
header img { height: 48px; }
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-yellow);
  color: var(--brand-coral);
}
.cta-button {
  display: inline-block;
  background: var(--brand-orange);
  color: var(--text-light);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.1rem;
  padding: 10px 26px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(255,168,95,0.09);
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-left: 20px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.2s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-coral);
  color: var(--text-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(233,99,90,0.16);
}

/* ========== HAMBURGER MENU FOR MOBILE ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-orange);
  color: var(--text-light);
  font-size: 2rem;
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2001;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--brand-coral);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.5,.05,.4,1);
  display: flex;
  flex-direction: column;
  padding: 40px 20px 30px 20px;
  box-shadow: 0 0 32px 2px rgba(34,63,90,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--brand-coral);
  color: #fff;
  font-size: 2rem;
  border-radius: var(--radius-xs);
  padding: 6px 15px;
  margin-bottom: 24px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--brand-coral);
  font-size: 1.15rem;
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 14px 0 14px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-yellow);
  color: var(--primary);
}

/* ========== MAIN SECTION & FEATURES ========== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
section:nth-child(even) {
  background: #fff9f4;
}
section .container {
  padding-left: 0;
  padding-right: 0;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  padding-left: 0.4em;
  margin-bottom: 0.5em;
}
ul li img {
  margin-right: 12px;
  vertical-align: middle;
}

/* ========== ICONS AND BADGES ========== */
.trust-badge, .badge {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: var(--radius-xs);
  padding: 6px 16px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 1px 4px 0 rgba(34,63,90,.10);
}
.professional-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

/* ========== TEAM PAGE FLEX ========== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.team-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  flex: 1 1 240px;
  min-width: 230px;
}

/* ========== QUALIFICATIONS/CARDS ========== */
.qualifications ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.qualifications li {
  background: var(--brand-yellow);
  color: var(--primary);
  border-radius: var(--radius-xs);
  padding: 8px 18px;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.short-bios {
  background: var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

/* ========== TEXT & IMAGE / FAQ FLEX ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: 0;
}
.text-section li {
  background: var(--brand-yellow);
  color: var(--text-main);
  border-radius: var(--radius-xs);
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ========== TESTIMONIALS & QUOTES ========== */
.testimonial-card {
  background: #fff;
  border-left: 6px solid var(--brand-orange);
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(255,168,95,0.12);
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.13rem;
}
.testimonial-card span {
  color: var(--brand-coral);
  font-size: 1rem;
  font-weight: 600;
}

/* ========== BLOG PREVIEWS (GUIDE) ========== */
.blog-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.blog-previews article {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  transition: box-shadow 0.19s, transform 0.18s;
  position: relative;
  min-width: 230px;
}
.blog-previews article:hover {
  box-shadow: 0 6px 18px 0 rgba(140,182,217,0.15);
  transform: translateY(-3px) scale(1.03);
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.categories span {
  background: var(--brand-yellow);
  color: var(--primary);
  padding: 5px 18px;
  border-radius: var(--radius-xs);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.categories span:hover {
  background: var(--secondary);
  color: #fff;
}

/* ========== CONTACT INFO SHORT (INDEX) ========== */
.contact-info-short {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.contact-info-short span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

/* ========== DL/DT/DD FOR CONTACT PAGE ========== */
dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dt {
  font-weight: bold;
  color: var(--brand-coral);
}
dd {
  margin-bottom: 7px;
}

/* ========== MAP/ICON SECTION ========== */
.map {
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 18px 24px;
  margin-top: 16px;
}
.map img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xs);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 26px 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--secondary);
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--brand-yellow);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-size: 1rem;
  color: #fff;
}

.footer-contact span{
	color: #fff
}
.footer-contact img {
  width: 22px; height: 22px; margin-right: 7px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social img {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 4px;
  box-shadow: 0 2px 7px 0 rgba(34,63,90,0.07);
}
footer small {
  color: var(--brand-yellow);
  font-size: 1rem;
  margin-top: 10px;
  display: block;
}

/* ========== FORM, SEARCH, INPUTS ========== */
input[type="search"] {
  width: 100%;
  max-width: 370px;
  padding: 11px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.17s;
}
input[type="search"]:focus {
  border: 1.5px solid var(--brand-coral);
}

/* ========== CONFIRMATION & NEXT STEPS (THANK-YOU PAGE) ========== */
.confirmation-message {
  background: var(--brand-yellow);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  color: var(--primary);
  margin-bottom: 20px;
}
.next-steps {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: var(--text-main);
  margin-bottom: 22px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3300;
  background: #fff4e5;
  box-shadow: 0 -2px 16px 0 rgba(34,63,90,0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 22px 14px 20px 14px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 62px;
}
.cookie-banner p {
  color: var(--primary);
  margin-bottom: 0;
  flex: 1 1 260px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-buttons button {
  border-radius: var(--radius-xs);
  padding: 8px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  border: none;
}
.cookie-buttons .accept {
  background: var(--brand-orange);
  color: #fff;
}
.cookie-buttons .accept:hover {
  background: var(--brand-coral);
}
.cookie-buttons .reject {
  background: #fff;
  color: var(--brand-coral);
  border: 1.5px solid var(--brand-coral);
}
.cookie-buttons .reject:hover {
  background: #ffe6e1;
}
.cookie-buttons .settings {
  background: var(--brand-yellow);
  color: var(--primary);
}
.cookie-buttons .settings:hover {
  background: var(--secondary);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,63,90,0.14);
  z-index: 3400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 22px 28px;
  max-width: 395px;
  width: 94%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalIn 0.37s cubic-bezier(.58,2.05,.41,.94);
}
@keyframes modalIn {
  from { transform: translateY(50px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: var(--brand-coral);
  border: none;
  color: #fff;
  font-size: 1.22rem;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
}
.cookie-modal-title {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--brand-coral);
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-settings-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 16px;
}
.cookie-setting {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
}
.cookie-setting-label {
  flex: 1 1 100px;
  font-size: 1rem;
}
.cookie-setting-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}
.cookie-setting-toggle input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
}
.cookie-setting-toggle .slider {
  position: absolute;
  left: 0; top: 4px;
  width: 44px;
  height: 16px;
  background: #ddd;
  border-radius: 18px;
  transition: background 0.21s;
}
.cookie-setting-toggle input:checked + .slider {
  background: var(--brand-orange);
}
.cookie-setting-toggle .thumb {
  position: absolute;
  top: -1px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(34,63,90,0.10);
  transition: left 0.2s;
}
.cookie-setting-toggle input:checked + .slider + .thumb {
  left: 21px;
}
.cookie-setting-essential {
  color: #bbb;
  font-size: 0.97em;
  font-style: italic;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  border-radius: var(--radius-xs);
  padding: 8px 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border: none;
  font-weight: 600;
  transition: background 0.16s;
}
.cookie-modal-footer .accept {
  background: var(--brand-orange);
  color: #fff;
}
.cookie-modal-footer .accept:hover {
  background: var(--brand-coral);
}
.cookie-modal-footer .close {
  background: #eee;
  color: var(--primary);
}
.cookie-modal-footer .close:hover {
  background: var(--secondary);
  color: #fff;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 94vw;
  }
  .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .team-member, .blog-previews article {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  /* Mobile menu trigger activates, desktop nav hides */
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header .container, header .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  section {
    padding: 32px 0;
    margin-bottom: 36px;
    border-radius: var(--radius-sm);
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.42rem; }
  .team-grid, .card-container, .content-grid, .blog-previews {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 15px 12px;
  }
  .map {
    padding: 11px 10px;
    margin-top: 8px;
  }
  .contact-info-short {
    flex-direction: column;
    gap: 9px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .footer-social img {
    width: 32px;
    height: 32px;
  }
  .categories {
    gap: 8px;
    flex-wrap: wrap;
  }
  input[type="search"] {
    max-width: 96vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 15px 8px 12px 8px;
    font-size: 1rem;
  }
  .cookie-modal-dialog {
    padding: 14px 8px 10px 8px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.19rem; }
  .blog-previews article {
    padding: 13px 7px;
  }
  .testimonials, .testimonial-card {
    padding: 11px 6px;
    font-size: 0.98rem;
  }
}
