:root{
  --brand:#0D7C82;
  --brand-dark:#0B6368;
  --brand-light:#E6F4F5;
  --fg:#111;
  --muted:#666;
  --card:#ffffff;
  --border:#e5e7eb;
  --bg:#fafafa;
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--fg); line-height:1.55; background:var(--bg);
}

.container{max-width:1080px;margin:auto;padding:28px 18px}

/* HERO */
.hero{
  background:var(--brand);color:#fff;border-bottom:1px solid var(--brand-dark);padding:56px 0;
  position:relative; isolation:isolate;
}
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px; opacity:.35; mix-blend-mode: soft-light;
}
.hero-inner{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hero-photo{width:140px;height:140px;border-radius:50%;object-fit:cover;
  box-shadow:0 12px 26px rgba(0,0,0,.22);border:3px solid rgba(255,255,255,.9)}
.brand-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap; position:relative}
.brand-logo{width:72px;height:auto;border-radius:10px;background:#fff;padding:10px;border:1px solid rgba(13,124,130,.15);box-shadow:0 10px 22px rgba(0,0,0,.16)}
.hero h1{font-size:clamp(28px,4vw,44px);margin:0 0 8px}
.headline{
  position:relative; padding:8px 12px; border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.sub{color:#e0f2f1;margin:6px 0 22px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex;gap:8px;align-items:center;padding:12px 18px;border-radius:12px;
  border:1px solid var(--brand-dark);color:#fff;background:var(--brand);text-decoration:none;font-weight:600;
  transition:transform .08s ease,opacity .2s ease, box-shadow .2s ease
}
.btn:hover{opacity:.95;transform:translateY(-2px); box-shadow:0 10px 18px rgba(13,124,130,.18)}
.btn:active{transform:translateY(1px)}
.btn:focus,.btn-solid:focus{outline:2px solid #fff; outline-offset:2px; box-shadow:0 0 0 3px rgba(13,124,130,.35)}
.btn.wa{background:#25d366;border-color:#25d366}
.btn.call{background:#fff;color:var(--brand);border-color:var(--brand)}
.btn.email{background:var(--brand-dark);color:#fff;border-color:var(--brand-dark)}
.btn-solid{background:var(--brand);color:#fff;border:none;padding:12px;border-radius:10px;cursor:pointer}
.btn-solid:hover{background:var(--brand-dark)}

/* Layouts */
.grid{display:grid;gap:28px}
.grid-2{grid-template-columns:1fr}
@media(min-width:900px){.grid-2{grid-template-columns:1.2fr .8fr}}

.cards{display:grid;gap:14px}
@media(min-width:700px){.cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.cards{grid-template-columns:repeat(3,1fr)}}

/* Elements */
.card{
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  background: linear-gradient(180deg, #fff, #fdfefe);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08), 0 8px 10px rgba(0,0,0,.06);
  border-color: rgba(13,124,130,.25);
}
h2{font-size:clamp(22px,2.5vw,28px);margin:6px 0 12px;color:var(--brand-dark)}
h3{margin:16px 0 8px;color:var(--brand)}
.section h2{position:relative; padding-bottom:6px}
.section h2::after{
  content:""; position:absolute; left:0; bottom:0;
  width:64px; height:4px; border-radius:2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
.fine{font-size:.92rem;color:var(--muted)}
.tags{margin:6px 0 4px}
.tag{display:inline-block;padding:3px 8px;border-radius:999px;border:1px solid var(--brand);
  font-size:.85rem;color:var(--brand-dark);background:linear-gradient(180deg,#e9f7f7,#f5fbfb);margin-right:6px;margin-bottom:6px;border-color:rgba(13,124,130,.28);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset}
.list{padding-left:18px}

/* Forms */
form{display:grid;gap:12px}
input,textarea{
  padding:12px;border:1px solid var(--border);border-radius:10px;font:inherit;background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(13,124,130,.5);
  box-shadow: 0 0 0 4px rgba(13,124,130,.12);
  outline: none;
}
textarea{min-height:120px}

/* Footer */
.footer{border-top:1px solid var(--brand-dark);background: linear-gradient(180deg, #0B6368, #0D7C82);color:#fff}
.footer-inner{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.footer-logo{width:80px;height:auto;border-radius:6px;background:#fff;padding:6px;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.footer a{color:#fff;text-decoration:underline}
.light{color:#e0f2f1}

/* Hide-only helper */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,1px,1px); white-space:nowrap; border:0;
}

/* ===== Mobile polish ===== */
@media (max-width: 480px){
  .container{padding:22px 14px}
}
@media (max-width: 780px){
  .hero{padding:34px 0}
  .hero-inner{gap:16px}
  .hero-photo{width:110px;height:110px}
  .brand-logo{width:58px}
  .hero h1{font-size:28px; line-height:1.18; margin-bottom:6px; word-break:break-word}
  .sub{margin:6px 0 14px; font-size:.95rem}
  .cta-row{gap:10px}
  .btn{padding:10px 14px; font-weight:600}
}
@media (max-width: 360px){
  .hero-photo{width:92px;height:92px}
  .brand-logo{width:48px}
  .hero h1{font-size:24px}
  .btn{padding:9px 12px; font-size:.95rem}
}
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
}
@media (max-width: 700px){
  .cards{grid-template-columns:1fr}
  input, textarea {font-size:16px; padding:12px 12px}
  .btn-solid{width:100%}
}
@media (min-width: 701px) and (max-width: 1000px){
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 780px){
  .footer-inner{flex-direction:column; align-items:flex-start; gap:12px}
  .footer-logo{width:68px}
}

/* ===== Mobile sticky bar ===== */
.mobile-bar{
  position:fixed; left:0; right:0; bottom:0;
  display:none; gap:10px;
  padding:10px env(safe-area-inset-right) calc(10px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  background:#fffffff0; backdrop-filter: blur(8px);
  border-top:1px solid var(--border);
  z-index:9999;
  box-shadow: 0 -8px 18px rgba(0,0,0,.08);
}
.mobile-btn{
  flex:1; text-align:center; font-weight:700; text-decoration:none;
  padding:12px 14px; border-radius:12px; border:1px solid transparent;
  box-shadow:0 6px 12px rgba(0,0,0,.06);
}
.mobile-btn.call{ background:#fff; color:var(--brand); border-color:var(--brand) }
.mobile-btn.wa{ background:#25d366; color:#fff; border-color:#25d366 }

@media (max-width: 780px){
  .mobile-bar{ display:flex; }
  body{ padding-bottom:80px; } /* Prevent content underlap */
}
/* ===== Sticky top bar (desktop only) ===== */
.topbar{
  position: sticky; top: 0; z-index: 1000;
  background: #0b666b; /* slightly lighter than hero for contrast */
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 10px 18px rgba(0,0,0,.06);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:10px; padding-bottom:10px;
}
.topbar-left{display:flex; align-items:center; gap:10px; font-weight:600}
.topbar-left .dot{opacity:.6}
.topbar-right{display:flex; align-items:center; gap:16px}
.toplink{
  color:#fff; text-decoration:none; font-weight:700;
  padding:6px 10px; border-radius:10px; border:1px solid transparent;
  transition:background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.toplink:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,0,0,.08);
}
/* Hide on tablets/phones; mobile uses bottom bar already */
@media (max-width: 980px){
  .topbar{ display:none; }
}

/* ===== Back to Top button ===== */
.to-top{
  position: fixed; right: 18px; bottom: 18px;
  width: 46px; height: 46px; border-radius: 999px;
  border: 2px solid var(--brand-dark);
  background: var(--brand); color: #fff; font-size: 22px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  z-index: 10000;
}
.to-top:hover{ background: var(--brand-dark); box-shadow: 0 16px 30px rgba(0,0,0,.22); transform: translateY(6px); }
.to-top.show{ opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Keep above your mobile bottom bar */
@media (max-width: 780px){
  .to-top{ bottom: 96px; }
}
/* Tooltip for Back to Top */
.to-top[data-tip]{
  position: fixed; /* already fixed, but ensures positioning for tooltip */
}
.to-top[data-tip]::after{
  content: attr(data-tip);
  position: absolute; right: 50%; transform: translateX(50%);
  bottom: 54px; /* above the circle */
  background: rgba(17,17,17,.9); color:#fff; font-size:12px; font-weight:600;
  padding:6px 8px; border-radius:8px; white-space:nowrap; 
  opacity:0; pointer-events:none; transition: opacity .18s ease, transform .18s ease;
}
.to-top[data-tip]:hover::after,
.to-top[data-tip]:focus-visible::after{
  opacity:1; transform: translateX(50%) translateY(-2px);
}

/* small triangle pointer */
.to-top[data-tip]::before{
  content:""; position:absolute; right:50%; transform: translateX(50%);
  bottom: 48px; width:8px; height:8px; background: rgba(17,17,17,.9);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity:0; transition: opacity .18s ease;
}
.to-top[data-tip]:hover::before,
.to-top[data-tip]:focus-visible::before{ opacity:1; }

/* prevent overlap with bottom mobile bar */
@media (max-width:780px){
  .to-top[data-tip]::after{ bottom: 132px; }
  .to-top[data-tip]::before{ bottom: 126px; }
}

/* Bounce animation */
@keyframes bounceIn {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.to-top {
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 50px; height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed; bottom: 40px; right: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background .25s ease;
  z-index: 9999;
}

.to-top.show {
  display: flex;
  animation: bounceIn 0.45s ease;
}

.to-top:hover {
  background: var(--brand-dark);
}
/* ===== Back to Top Button ===== */
.to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 9999;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.to-top svg {
  pointer-events: none; /* keeps clicks on button, not SVG */
}

/* Show state */
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: bounceIn .45s ease;
}

/* Hover effect */
.to-top:hover {
  background: var(--brand-dark);
}

/* Bounce animation */
@keyframes bounceIn {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* ===== Scroll Progress Bar ===== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px; /* thickness of bar */
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  z-index: 10000;
  transition: width 0.15s ease;
}

/* Mobile adjustment for Back to Top button */
@media (max-width: 780px) {
  .to-top {
    bottom: 96px; /* pushes it up above your sticky contact bar */
    right: 16px; /* a little breathing space on the right */
    width: 46px;
    height: 46px;
  }
}

/* Add this */
.hero h1, .hero .sub, .hero .cta-row {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
}

.hero h1 { animation-delay: 0.2s; }
.hero .sub { animation-delay: 0.4s; }
.hero .cta-row { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0,0,0,.15);
}
.kpi {
  opacity: 0;
  transform: scale(.9);
  animation: popIn .6s ease forwards;
}
.kpi:nth-child(1) { animation-delay: .2s; }
.kpi:nth-child(2) { animation-delay: .4s; }
.kpi:nth-child(3) { animation-delay: .6s; }
.kpi:nth-child(4) { animation-delay: .8s; }

@keyframes popIn {
  to { opacity:1; transform:scale(1); }
}
.btn-ghost{
  padding:8px 12px;
  border:1px solid #0D7C82;
  border-radius:6px;
  background:#fff;
  color:#0D7C82;
  cursor:pointer;
  line-height:1;
}
.btn-ghost:hover{ background:#0D7C82; color:#fff; }
.topbar-right{ display:flex; gap:10px; align-items:center; } /* ensure spacing */
/* Ensure topbar actions stay visible and wrap on small screens */
.topbar-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

@media (max-width: 640px){
  .topbar-right a,
  .topbar-right .btn-ghost,
  #shareBtn { display:inline-flex !important; } /* don't hide */
}
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; z-index: 60; }
.mobile-btn { flex: 1 1 33.33%; text-align: center; padding: 12px 10px; text-decoration: none; }

/* Optional color for Share */
.mobile-btn.share { background: #0D7C82; color: #fff; }
.mobile-btn.share:active { opacity: .9; }