/* --- CSS RESET & BASE --- */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #f8faf9;
  color: #173944;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-weight: 400;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #185266;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B5C7B2;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}
strong { font-weight: 700; }

/* --- BRAND COLORS AS CSS VARIABLES --- */
:root {
  --primary: #185266;
  --secondary: #0B2D36;
  --accent: #B5C7B2;
  --bg-light: #f8faf9;
  --danger: #e63946;
  --cta-gradient: #B5C7B2;
  --card-shadow: 0 2px 16px 0 rgba(24,82,102,0.10);
  --radius: 20px;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  color: var(--primary);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 26px;
  text-shadow: 2px 4px 0 var(--accent);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  position: relative;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, span {
  color: #1b353e;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

/* --- CONTAINER UTILITY --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
}
.content-wrapper {
  padding: 0;
  margin: 0;
}

/* --- FLEXBOX LAYOUTS (MANDATORY PATTERNS) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.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: #F0F6F4;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(24,82,102,0.08);
  transition: transform 0.18s cubic-bezier(.64,.09,.08,1), box-shadow 0.18s;
}
.testimonial-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 7px 24px 0 rgba(24,82,102,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,82,102,0.065);
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: auto;
}
.main-navigation {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-navigation a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 14px;
  padding: 6px 14px;
  transition: background 0.16s, color 0.16s;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
}
.main-navigation a:hover, .main-navigation a:focus {
  background: var(--accent);
  color: var(--primary);
}
.main-navigation .cta-btn {
  background: var(--accent);
  color: var(--secondary);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  border-radius: 18px;
  padding: 7px 24px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  margin-left: 18px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.main-navigation .cta-btn:hover, .main-navigation .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(24,82,102,0.18);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  z-index: 302;
  transition: background .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,82,102, 0.96);
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.64,.09,.08,1);
  z-index: 301;
  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: all;
}
.mobile-menu-close {
  margin: 28px 0 0 24px;
  font-size: 2.6rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 305;
  outline: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 10px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
  width: 100%;
  align-items: flex-start;
  padding: 0 44px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.75;
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  transition: color 0.16s, background 0.16s;
  padding: 8px 18px;
  border-radius: 15px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  header .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 640px) {
  .mobile-nav {
    padding: 0 16px;
    gap: 21px;
  }
  .mobile-menu-close {
    margin-left: 12px;
    margin-top: 20px;
  }
}

/* --- HERO & CTA STYLES --- */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  border-radius: 20px;
  padding: 12px 36px;
  margin-top: 22px;
  box-shadow: 0 4px 20px 0 rgba(181,199,178,0.13);
  border: 2px solid var(--accent);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 20px 0 rgba(24,82,102,0.21);
}

/* --- CARD & SERVICE STYLES --- */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 28px 26px 28px;
  margin-bottom: 20px;
  margin-right: 14px;
  min-width: 254px;
  max-width: 320px;
  flex: 1 1 290px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.16s;
  border-left: 7px solid var(--accent);
}
.service-card h3 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
}
.service-card p {
  color: #1b353e;
  font-size: 1rem;
  margin-bottom: 9px;
}
.service-card div {
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-size: 1.09rem;
  font-weight: 700;
}
.service-card:hover {
  box-shadow: 0 10px 32px 0 rgba(24,82,102,0.18);
  transform: translateY(-6px) scale(1.015);
}

/* --- LISTS WITH ICONS --- */
ul li, ol li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #254150;
}
ul li img {
  height: 24px;
  width: 24px;
  margin-right: 2px;
}

/* --- ACCORDION FAQ --- */
.accordion h3 {
  cursor: pointer;
  font-size: 1.18rem;
  background: transparent;
  padding: 12px 0;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  border-bottom: 1px dashed var(--accent);
  transition: color .15s;
  outline: none;
}
.accordion h3:hover, .accordion h3:focus {
  color: var(--secondary);
}
.accordion div {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(.45,.22,.2,1), opacity 0.18s;
  background: #F0F6F4;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 12px;
  opacity: 0;
}
.accordion .open {
  max-height: 160px;
  opacity: 1;
  padding: 12px 14px 16px 14px;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card p {
  font-size: 1.13rem;
  color: #12262F;
  font-style: italic;
}
.testimonial-card span {
  color: #254150;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-left: 10px;
}

/* --- FOOTER --- */
footer {
  background: var(--secondary);
  color: #fff;
  width: 100%;
  padding: 44px 0 18px 0;
  position: relative;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo {
  flex: 0 0 120px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 1rem;
  margin: 18px 0;
}
.footer-nav a {
  color: #fff;
  opacity: 0.87;
  transition: color 0.2s, opacity 0.17s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social img {
  height: 34px;
  width: 34px;
  filter: drop-shadow(0 1px 3px rgba(24,82,102,0.12));
  transition: filter 0.2s, transform 0.13s;
}
.footer-social img:hover {
  filter: drop-shadow(0 2px 8px rgba(24,82,102,0.20));
  transform: scale(1.13) rotate(-3deg);
}

/* --- TEAM / IMAGE --- */
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 38px 0 0 0;
}
.team-photo-placeholder img {
  width: 140px;
  height: 140px;
  border-radius: 100%;
  background: var(--accent);
  box-shadow: 0 2px 14px 0 rgba(24,82,102,0.10);
  object-fit: cover;
}

/* --- TABLET & MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .section {
    padding: 28px 7px;
  }
  .footer-nav, .main-navigation {
    gap: 13px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .team-photo-placeholder img {
    width: 100px; height: 100px;
  }
  .service-card {
    min-width: 100%;
    max-width: none;
    margin-right: 0;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .service-card { padding: 16px 7px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--secondary);
  box-shadow: 0 -2px 10px 0 rgba(24,82,102,0.13);
  z-index: 410;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 36px;
  font-size: 1rem;
  animation: cookieBannerIn 0.4s;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 280px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 15px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-btn.reject {
  background: #e63946;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 2px 16px 0 rgba(24,82,102,0.11);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 9px 22px 8px;
  }
  .cookie-banner-buttons {
    flex-direction: row;
    gap: 7px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,82,102,0.63);
  z-index: 490;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.23s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--secondary);
  padding: 44px 32px 28px 32px;
  border-radius: 28px;
  box-shadow: 0 8px 64px 0 rgba(24,82,102,0.17);
  min-width: 310px;
  max-width: 98vw;
  font-size: 1rem;
  animation: modalUp 0.24s;
}
@keyframes modalUp {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.31rem;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.cookie-category.disabled label {
  color: #999;
  font-style: italic;
  opacity: 0.75;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: var(--danger);
  color: #fff;
  border-radius: 15px;
  padding: 7px 17px;
  cursor: pointer;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  transition: background 0.16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* --- DECORATIVE ELEMENTS (UNIQUE/ARTISTIC) --- */
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: -30px; top: -30px;
  width: 75px; height: 75px;
  background: var(--accent);
  opacity: 0.13;
  border-radius: 38% 62% 51% 49%/70% 44% 56% 30%;
  z-index: 1;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: -36px; bottom: -14px;
  width: 44px; height: 44px;
  background: var(--primary);
  opacity: 0.07;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* --- SELECTED ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-btn, .cookie-btn, .service-card, .testimonial-card {
  transition: all 0.18s cubic-bezier(.64,.09,.08,1);
}
.cta-btn:active {
  transform: scale(0.98);
}
.service-card:active {
  transform: scale(0.98);
}
.testimonial-card:active {
  transform: scale(0.98);
}

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* --- MISC UTILITY CLASSES/STRUCTURE --- */
.content-wrapper ul, .content-wrapper ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 14px;
}
.content-wrapper ul li, .content-wrapper ol li {
  margin-bottom: 10px;
  line-height: 1.58;
}

/* --- THANK-YOU PAGE HERO BTN --- */
.thank-you .cta-btn {
  margin-top: 50px;
  font-size: 1.16rem;
  padding: 13px 41px;
  border-radius: 24px;
}

/* --- END --- */
