:root {
  --tc-blue: #174A70;
  --tc-teal: #2A9D8F;
  --tc-white: #FFFFFF;
  --tc-gray: #F5F8FA;
  --tc-charcoal: #263238;
  --bs-primary: var(--tc-blue);
  --bs-body-color: var(--tc-charcoal);
}

body { color: var(--tc-charcoal); background: var(--tc-white); }
h1, h2, h3, h4, h5 { color: var(--tc-blue); font-weight: 700; }
a { color: var(--tc-teal); }

.navbar { background: var(--tc-white); box-shadow: 0 1px 6px rgba(0, 0, 0, .1); }
.navbar-brand { color: var(--tc-blue); font-weight: 700; }
.navbar .nav-link { color: var(--tc-charcoal); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--tc-teal); }

.btn-teal { background: var(--tc-teal); color: #fff; border: 0; border-radius: 50rem; padding: .6rem 1.4rem; }
.btn-teal:hover { background: var(--tc-blue); color: #fff; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--tc-gray); }

.hero {
  background: linear-gradient(135deg, var(--tc-blue), var(--tc-teal));
  color: #fff; padding: 6rem 0;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); }

.site-footer { background: var(--tc-charcoal); color: #dfe6e9; padding: 2rem 0; }
.site-footer a { color: #fff; }

.page-header { background: var(--tc-gray); padding: 3rem 0; }
.page-header h1 { margin-bottom: .5rem; }
.breadcrumb { margin-bottom: .5rem; }

.service-card { border: 0; border-radius: 1rem; box-shadow: 0 2px 14px rgba(23, 74, 112, .1); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(23, 74, 112, .18); }
.service-card .card-img-top { border-radius: 1rem 1rem 0 0; height: 200px; object-fit: cover; }
.service-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tc-gray); color: var(--tc-teal); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }

.text-teal { color: var(--tc-teal); }

.brand-logo { height: 48px; width: 48px; object-fit: contain; }
.navbar-brand span { line-height: 1.2; }
.footer-logo { display: block; background: #fff; border-radius: 50%; padding: 4px; object-fit: contain; }
@media (max-width: 400px) { .navbar-brand span { font-size: .85rem; } .brand-logo { height: 40px; width: 40px; } }

/* ---- Top bar ---- */
.topbar { background: var(--tc-blue); color: #fff; font-size: .9rem; padding: .45rem 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---- Hero slider ---- */
.hero-slider { position: relative; }
.hero-slider .carousel-item { height: clamp(440px, 62vh, 600px); background: var(--tc-blue); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 74, 112, .92) 0%, rgba(23, 74, 112, .72) 45%, rgba(42, 157, 143, .25) 100%); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.hero-caption .hero-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700;
  max-width: 640px; line-height: 1.15; margin-bottom: 1rem; }
.hero-caption p { color: #fff; max-width: 560px; font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next {
  width: 44px; height: 44px; top: 50%; bottom: auto; transform: translateY(-50%); background: #fff; opacity: 1; z-index: 3; }
.hero-slider .carousel-control-prev { left: 0; }
.hero-slider .carousel-control-next { right: 0; }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon { filter: invert(1); width: 1rem; height: 1rem; }
.hero-slider .carousel-indicators { z-index: 3; margin-bottom: 1rem; }
@media (max-width: 576px) {
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 36px; height: 36px; }
  .hero-caption p { font-size: 1rem; }
}

/* ---- "Send an email" tab (attached to the right edge) ---- */
.email-tab {
  position: fixed; right: 0; bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 1049; display: flex; align-items: center; gap: .5rem;
  background: var(--tc-blue); color: #fff; font-weight: 600; text-decoration: none;
  padding: .7rem 1.1rem .7rem 1rem; border-radius: 2rem 0 0 2rem;
  box-shadow: -3px 3px 12px rgba(0, 0, 0, .25);
  transform: translateX(100%); animation: email-tab-in .6s ease-out 1.5s forwards;
  transition: background .2s, padding .2s;
}
@keyframes email-tab-in { to { transform: translateX(0); } }
.email-tab:hover, .email-tab:focus { background: var(--tc-teal); color: #fff; padding-right: 1.5rem; }
@media (max-width: 576px) { .email-tab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; padding: .6rem .9rem; } }
@media (prefers-reduced-motion: reduce) { .email-tab { animation: none; transform: none; transition: none; } }
@media print { .email-tab { display: none; } }

#contact-form { scroll-margin-top: 90px; }

.footer-credit { font-size: .85rem; opacity: .8; }