/* --- 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, menu, 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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fafafa;
  color: #1b3e4b;
  font-family: "Roboto", "Georgia", serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  color: #225060;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #F99B3D;
  outline: none;
}
ul, ol {
  margin-left: 1.25em;
  padding-left: 0.75em;
}

hr {
  border: none;
  border-top: 1px solid #e1e3e7;
  margin: 32px 0;
}

/* --- FONT IMPORTS (SUGGESTED) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1b3e4b;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li {
  font-family: "Roboto", Georgia, serif;
  font-size: 1rem;
  color: #2a3943;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS & SPACING --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 1024px) {
  .section { padding: 30px 12px; }
}
@media (max-width: 768px) {
  .section { padding: 20px 8px; margin-bottom: 36px; }
}

/* --- FLEX CONTAINERS (MANDATORY PATTERNS) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(34,80,96,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.15s cubic-bezier(.4,0,.2,1);
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px 0 rgba(34,80,96,0.15);
  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;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(34,80,96,0.10);
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
}
.testimonial-card p {
  font-style: italic;
  color: #1b3e4b;
  font-size: 1.1rem;
  margin-bottom: 0;
  flex: 1 1 auto;
}
.testimonial-card span {
  color: #F99B3D;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO/LANDING --- */
.hero {
  background: linear-gradient(135deg,#fff 65%,#f3f6f7 100%);
  border-bottom: 1px solid #e1e3e7;
  padding: 0 0 54px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero .content-wrapper {
  max-width: 660px;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  color: #225060;
  margin-bottom: 4px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: #305063;
}

/* --- COMMON BUTTONS & CTA --- */
.cta-btn, .service-cta, .newsletter-signup a.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: #1b3e4b;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  border-radius: 25px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px 0 rgba(34,80,96,0.06);
  cursor: pointer;
  transition: background 0.18s, color 0.15s, box-shadow 0.22s;
  margin-top: 10px;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus, .service-cta:hover, .service-cta:focus {
  background: #F99B3D;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(249,155,61,0.14);
}
.service-cta {
  background: #fff;
  color: #225060;
  border: 1.5px solid #F99B3D;
  box-shadow: none;
  margin-top: 18px;
  transition: border 0.15s, background 0.15s, color 0.18s;
}
.service-cta:hover, .service-cta:focus {
  background: #F99B3D;
  color: #fff;
  border-color: #F99B3D;
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(34,80,96,0.07);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  color: #225060;
  border-radius: 8px;
  padding: 6px 13px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #F99B3D;
  color: #fff;
}
/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #1b3e4b;
  cursor: pointer;
  margin-left: 8px;
  z-index: 111;
}

/* --- MOBILE BURGER MENU --- */
@media (max-width: 1024px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34,80,96,0.92);
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.5,0,.22,1);
  padding-top: 50px;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  z-index: 210;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 3px;
  padding: 0 28px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.35rem;
  padding: 16px 8px;
  border-radius: 14px;
  transition: background 0.17s, color 0.17s;
  margin-bottom: 7px;
  text-align: left;
}
.mobile-nav a:last-child {
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F99B3D;
  color: #fff;
  outline: none;
}

/* --- CARD GRIDS FOR SERVICES, BLOGS, TEAM, ETC. --- */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 10px 0 rgba(34,80,96,0.08);
  padding: 30px 24px;
  flex: 1 1 260px;
  max-width: 360px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s;
}
.service-card h3 {
  color: #225060;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 1.02rem;
  margin-bottom: 0;
}
.service-card .service-cta {
  align-self: flex-start;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 26px 0 rgba(34,80,96,0.13);
  z-index: 2;
}

.feature-grid, .services-list, .process-list, .benefits-list, .team-list, .blog-posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-left: 0;
}
.feature-grid li, .services-list li, .process-list li, .benefits-list li, .team-member, .blog-posts-list li {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(34,80,96,0.04);
  border-radius: 10px;
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-list {
  gap: 20px;
}
.team-member h3 {
  color: #F99B3D;
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.categories-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
}
.categories-list span {
  background: #e8edef;
  color: #225060;
  border-radius: 6px;
  padding: 4px 12px;
  margin-right: 4px;
  font-size: 0.98rem;
}

.newsletter-signup {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

/* --- CASE STUDIES --- */
.case-study {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(34,80,96,0.06);
  padding: 30px 22px 20px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-study h3 {
  color: #1b3e4b;
  font-size: 1.25rem;
}
.case-study ul {
  list-style: disc inside;
  margin-top: 5px;
  margin-bottom: 0;
}

/* --- TEXT SECTIONS AND CONTENT --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.text-section ul, .text-section ol {
  margin-top: 2px;
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 4px;
}

/* --- CONTACT PAGE --- */
.contact-info-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}
.contact-info-block li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
}
.map-embed {
  margin: 24px 0 10px 0;
}
.business-hours {
  margin-bottom: 16px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.12rem;
  color: #225060;
}

/* --- FOOTER STYLE --- */
footer {
  background: #f3f6f7;
  color: #1b3e4b;
  padding: 38px 0 0 0;
  border-top: 1px solid #e1e3e7;
  margin-top: 70px;
  font-size: 15px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
}
.footer-contact {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: #225060;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.17s;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus, .footer-legal a:hover, .footer-legal a:focus {
  color: #F99B3D;
  background: #ede7e0;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer small {
  display: block;
  margin: 30px 0 15px 0;
  color: #8B939B;
  text-align: center;
}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 1024px) {
  .content-wrapper, .footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }
  .services-cards, .feature-grid, .services-list, .process-list, .benefits-list, .team-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.11rem; }
  body { font-size: 15px; }
  .card-container, .services-cards, .feature-grid, .content-grid, .team-list, .blog-posts-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer .content-wrapper {
    gap: 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffefc;
  border-top: 1.5px solid #e1e3e7;
  box-shadow: 0 -2px 16px 0 rgba(34,80,96,0.08);
  padding: 20px 16px 16px 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  transition: transform 0.38s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-btn {
  margin-left: 10px;
  padding: 10px 24px;
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.16s;
  background: #e9ecef;
  color: #1b3e4b;
}
.cookie-banner .cookie-btn.accept {
  background: #225060;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #8B939B;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #F99B3D;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  opacity: 0.8;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 11001;
  background: rgba(34,80,96,0.37);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 8px 80px 0 rgba(34,80,96,0.23);
  max-width: 420px;
  width: 92vw;
  padding: 36px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieFadeIn 0.33s ease-in;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  color: #1b3e4b;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.cookie-category label {
  font-family: 'Roboto', serif;
}
.cookie-category input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #225060;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 18px;
  border: none;
  background: none;
  color: #1b3e4b;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.cookie-modal-actions button {
  padding: 8px 20px;
  border-radius: 16px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  background: #225060;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal-actions button:last-child {
  background: #F99B3D;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  opacity: 0.87;
}

/* --- UTILITIES & MICRO-INTERACTIONS --- */
.shadow {
  box-shadow: 0 2px 14px 0 rgba(34,80,96,0.09);
}
.rounded {
  border-radius: 13px;
}
.faded {
  opacity: 0.55;
}

/* --- TRANSITIONS & ANIMATED ENHANCEMENTS --- */
.card, .service-card, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(34,80,96,0.13);
}
.feature-grid li:hover, .services-list li:hover, .benefits-list li:hover {
  background: #f9f7f4;
  box-shadow: 0 2px 20px 0 rgba(249,155,61,0.05);
  transform: translateY(-2px);
}

/* --- VISUAL HIERARCHY & WHITE SPACE --- */
.section > .container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.section:not(:last-child) {
  border-bottom: 1px solid #e1e3e7;
}

/* --- ACCESSIBILITY: FOCUS STATES --- */
button:focus, [tabindex]:focus {
  outline: 2px solid #F99B3D;
  outline-offset: 1px;
}

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display:none !important; }
}
