/* RESET & BASE TYPOGRAPHY -------------------------------------------------- */
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 {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222435;
  background: #fff;
  font-size: 16px;
  line-height: 1.625;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #222435;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover,
a:focus {
  color: #9DB8C6;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222435;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

p, .subheadline, li, label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222435;
  font-size: 1rem;
  margin-bottom: 1em;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* HEADER & NAV -------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #F2F2F2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.logo img {
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #222435;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.main-nav a:not(.cta-button)::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #9DB8C6;
  transition: width .2s;
  margin-top: 4px;
}
.main-nav a:not(.cta-button):hover::after,
.main-nav a:not(.cta-button):focus::after {
  width: 100%;
}
.main-nav .cta-button {
  margin-left: 12px;
}

/* MOBILE MENU -------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222435;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 12px;
  border-radius: 6px;
  transition: background .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F8E8D3;
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,36,53,0.95);
  color: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.77,.2,.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 101;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #9DB8C6;
  color: #222435;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 90px 0 0 40px;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  padding: 10px 0;
}
.mobile-nav a:active,
.mobile-nav a:focus {
  color: #F8E8D3;
}

@media (max-width: 1100px) {
  header .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
  header .container { padding-left: 16px; padding-right: 16px; }
  .main-nav { gap: 12px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* CTA BUTTON -------------------------------------------------- */
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #9DB8C6;
  color: #222435;
  padding: 10px 28px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(157,184,198,0.04);
  transition: background .2s, box-shadow .2s, color .2s;
  outline: none;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0;
}
.cta-button:hover, .cta-button:focus {
  background: #222435;
  color: #fff;
  box-shadow: 0 4px 24px rgba(34,36,53,0.10);
}

/* SECTIONS & LAYOUT -------------------------------------------------- */
main { min-height: 60vh; }

.section,
.hero, .features, .about, .services, .testimonials, .cta,
.about-section, .team, .case-studies, .contact-details, .contact-form, .map, .legal, .pricing, .faq, .thank-you, .blog-list, .newsletter {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px rgba(34,36,53,0.03);
}
.hero {
  background: #F8E8D3;
  margin-bottom: 60px;
  box-shadow: none;
}
.features {
  margin-bottom: 60px;
}

.content-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .section, .hero, .features, .about, .services, .testimonials,
  .cta, .about-section, .team, .case-studies, .contact-details,
  .contact-form, .map, .legal, .pricing, .faq, .thank-you, .blog-list, .newsletter {
    padding: 24px 6px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .content-wrapper { max-width: 100%; }
}

/* FLEXBOX CONTAINERS -------------------------------------------------- */
.card-container,
.feature-grid, .benefit-list, .feature-list, .team-list, .faq-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  list-style: none;
}

.card,
.team-member, .case-study-summary, .blog-preview {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,36,53,0.07);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover, .team-member:hover, .case-study-summary:hover,
.blog-preview:hover {
  box-shadow: 0 4px 24px rgba(34,36,53,0.13);
  transform: translateY(-4px);
}

.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;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(34,36,53,0.07);
  margin-bottom: 20px;
  border: 1px solid #F2F2F2;
  flex-direction: column;
  align-items: flex-start;
  color: #222435;
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #222435;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: .96rem;
  color: #9DB8C6;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .feature-grid, .benefit-list, .feature-list, .team-list, .content-grid, .service-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .feature-grid, .benefit-list, .feature-list,
  .team-list, .faq-list, .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}

/* FORMS -------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #222435;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea {
  background: #F8E8D3;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0;
  transition: border .2s;
}
input:focus, textarea:focus {
  border-color: #9DB8C6;
  outline: none;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button, input[type="submit"] {
  font-family: inherit;
}

/* TABLES -------------------------------------------------- */
.service-pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 14px rgba(34,36,53,0.03);
}
.service-pricing-table th, .service-pricing-table td {
  text-align: left;
  padding: 16px 12px;
}
.service-pricing-table thead th {
  background: #F8E8D3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #222435;
  border-bottom: 2px solid #E8E8E8;
}
.service-pricing-table tbody tr {
  border-bottom: 1px solid #F2F2F2;
}
.service-pricing-table tbody td {
  color: #222435;
  background: #fff;
}

@media (max-width: 600px) {
  .service-pricing-table,
  .service-pricing-table thead, .service-pricing-table tbody, .service-pricing-table th, .service-pricing-table td, .service-pricing-table tr {
    display: block;
  }
  .service-pricing-table tr { margin-bottom: 14px; }
  .service-pricing-table td, .service-pricing-table th {
    padding: 10px 9px;
  }
  .service-pricing-table thead th {
    border-bottom: 0;
  }
}

/* BLOG & NEWSLETTER ---------------------------------------- */
.blog-preview {
  border: 1px solid #F2F2F2;
  border-radius: 14px;
  background: #fff;
  padding: 24px 22px;
  margin-bottom: 20px;
  transition: box-shadow .2s, border .2s;
}
.blog-preview:hover {
  box-shadow: 0 2px 18px rgba(34,36,53,0.11);
  border-color: #9DB8C6;
}
.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #9DB8C6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .18s;
}
.read-more:hover, .read-more:focus {
  color: #222435;
  text-decoration: underline;
}
.blog-categories {
  font-size: .98rem;
  margin-top: 12px;
  color: #9DB8C6;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
}
@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; gap: 8px; }
}

/* FOOTER -------------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #F2F2F2;
  padding: 42px 0 30px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 42px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #9DB8C6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #222435;
  text-decoration: underline;
}
.footer-contact {
  font-size: .98rem;
  color: #222435;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #222435;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  opacity: 0.90;
  transition: opacity .18s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  opacity: 1;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo { order: 1; }
  .footer-nav, .footer-contact, .footer-social { order: unset; }
}

/* COOKIE CONSENT BANNER & MODAL -------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222435;
  color: #fff;
  width: 100%;
  z-index: 10999;
  padding: 24px 20px 20px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 -2px 24px rgba(34,36,53,0.18);
  font-size: 1rem;
  justify-content: space-between;
}
.cookie-banner p {
  flex: 1;
  margin-bottom: 0;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner .cookie-btn {
  background: #F8E8D3;
  color: #222435;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-banner .cookie-btn.accept {
  background: #9DB8C6;
  color: #222435;
}
.cookie-banner .cookie-btn.reject {
  background: transparent;
  border: 1.5px solid #F8E8D3;
  color: #F8E8D3;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  border: 1.5px solid #9DB8C6;
  color: #9DB8C6;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #222435;
  border-color: #fff;
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: .96rem;
    padding: 16px 5px 14px 5px;
    align-items: stretch;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,36,53,0.65);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #222435;
  border-radius: 18px;
  max-width: 410px;
  width: 90%;
  padding: 32px 28px 22px 28px;
  box-shadow: 0 6px 28px rgba(34,36,53,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn .33s cubic-bezier(.7,.2,.13,1.01) both;
}
@keyframes cookieModalIn {
  0% { transform: translateY(60px) scale(.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9DB8C6;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #222435;
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: #222435;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-category.essential {
  opacity: .7;
}
.cookie-category-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
}
/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #F8E8D3;
  border-radius: 12px;
  left: 0; top: 0; right: 0; bottom: 0;
  transition: background .18s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #9DB8C6;
  border-radius: 50%;
  transition: transform .17s, background .17s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #9DB8C6;
}
.toggle-switch input:checked + .toggle-slider:before {
  background: #222435;
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-actions .cookie-btn {
  border-radius: 18px;
  padding: 7px 20px;
  background: #F8E8D3;
  color: #222435;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal-actions .cookie-btn.save {
  background: #9DB8C6;
}
.cookie-modal-actions .cookie-btn:hover, .cookie-modal-actions .cookie-btn:focus {
  background: #222435;
  color: #fff;
}

@media (max-width: 420px) {
  .cookie-modal-content { padding: 18px 4vw 12px 4vw; gap: 11px; }
}

/* UTILITIES -------------------------------------------------- */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }

/* PRICE TAG -------------------------------------------------- */
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #9DB8C6;
  font-weight: 600;
  margin-left: 8px;
}

/* MISC & INTERACTIONS -------------------------------------------------- */
::selection { background: #9DB8C6; color: #fff; }

@media (hover:hover) {
  a, .cta-button, .cookie-btn, .main-nav a {
    transition: color .18s, background .19s, box-shadow .22s, border .17s;
  }
}
.blog-preview,
.card,
.testimonial-card,
.team-member,
.case-study-summary {
  transition: box-shadow .23s, transform .18s;
}

/* CARD & TEAM -------------------------------------------------- */
.team-list {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.team-member {
  flex: 1 1 280px;
  background: #F8E8D3;
  border: 1px solid #F2F2F2;
  color: #222435;
  min-width: 210px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .team-list {
    flex-direction: column;
    gap: 10px;
  }
  .team-member { padding: 16px 12px; }
}

/* SPECIALS: CASE STUDY, FAQ, ETC. ---------------------------------- */
.case-studies {
  background: #fff;
  box-shadow: 0 2px 11px rgba(34,36,53,0.05);
  border-radius: 16px;
}
.case-study-summary {
  margin-bottom: 22px;
  border: 1px solid #F2F2F2;
  background: #F8E8D3;
  color: #222435;
}

.faq-list {
  padding-left: 0;
  gap: 20px;
}
.faq-list li {
  margin-bottom: 0;
  color: #222435;
  font-size: 1rem;
  line-height: 1.7;
}

/* RESPONSIVE DEFAULTS ----------------------------------------------- */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .content-wrapper { padding: 0 2px; }
}

/* ACCESSIBILITY -------------------------------------------------- */
:focus-visible { outline: 2px solid #9DB8C6; outline-offset: 2px; }

/* HIDE ACCESSORY DECORATIVE THINGS ON SMALL SCREENS */
@media (max-width: 420px) {
  .footer-logo img, .logo img { height: 32px !important; }
}
