:root {
  --ink: #0d2f3d;
  --muted: #58717a;
  --line: #d7e7e9;
  --paper: #f4faf9;
  --white: #ffffff;
  --blue: #2b7f8d;
  --blue-deep: #216b7a;
  --blue-dark: #123d4b;
  --soft: #e3f1f2;
  --shadow: 0 20px 50px rgba(13, 47, 61, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 450;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar { background: var(--blue-dark); color: white; font-size: 13px; font-weight: 520; }
.topbar-inner, .nav-inner, .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 154px; height: 72px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 20px; color: #244b55; font-size: 14px; font-weight: 620; }
.menu a { padding: 10px 0; }
.nav-inner > .btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
}

.btn-primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(43, 127, 141, .18); }
.btn-secondary { color: var(--blue-dark); background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.62); }

.hamburger-menu { display: none; }

.hamburger-menu summary {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger-menu summary::-webkit-details-marker { display: none; }

.hamburger-menu summary span {
  width: 18px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 999px;
}

.hamburger-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 82px;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(13,47,61,.22);
  backdrop-filter: blur(16px);
}

.hamburger-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 650;
}

.hamburger-panel a:hover { background: var(--soft); }

.page-hero {
  color: white;
  background:
    linear-gradient(90deg, rgba(13,47,61,.94), rgba(43,127,141,.72)),
    var(--hero-image, url("https://indolor.pt/assets/images/13-6000x4000.jpg")) center / cover;
}

.page-hero .container { padding: 86px 0 96px; }
.eyebrow { margin: 0 0 14px; color: #bfe2e6; font-size: 12px; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: 0; }
.page-hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 680; }
.page-hero p { max-width: 710px; margin: 22px 0 0; color: rgba(255,255,255,.84); font-size: 19px; font-weight: 430; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.hero-actions .btn + .btn {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.38);
}

section { padding: 74px 0; }
.band { background: white; border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: end; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 680; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.copy p, .rich p, .rich li { color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.media img { width: 100%; height: 480px; object-fit: cover; }

.card-grid, .team-grid, .logo-grid, .facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-section { margin-top: 46px; }
.team-section:first-of-type { margin-top: 0; }
.team-section h3 {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.card, .person, .logo-card, .facility-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: stretch;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(13,47,61,.05);
}

.feature-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.feature-card h3 {
  max-width: 340px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 680;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-card span {
  width: max-content;
  margin-top: 28px;
  padding-bottom: 4px;
  color: var(--blue-dark);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 650;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.card { padding: 22px; }
.card h3 { margin: 0 0 10px; font-weight: 680; }
.card p { margin: 0; color: var(--muted); }
.person img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  background: #e6f2f3;
}

.person:nth-child(1) img,
.person:nth-child(2) img,
.person:nth-child(3) img,
.person:nth-child(4) img,
.person:nth-child(5) img,
.person:nth-child(7) img {
  object-position: center top;
}

.person:nth-child(6) img,
.person:nth-child(9) img,
.person:nth-child(10) img {
  object-position: center center;
}

.facility-card img { width: 100%; height: 282px; object-fit: cover; background: var(--soft); }
.person div, .facility-card div { padding: 16px; }
.person small, .facility-card small { color: var(--muted); font-size: 12px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; }
.person strong, .facility-card strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 670; }
.person-cv {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 680;
}

.person-cv:hover {
  border-color: rgba(43, 127, 141, .35);
  background: var(--blue);
  color: white;
}

.logo-card {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--blue-dark);
  font-weight: 670;
}

details { background: white; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 19px 22px; color: var(--blue-dark); font-weight: 670; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary { border-bottom: 1px solid var(--line); background: #fbfefd; }
.detail-body { padding: 20px 22px 24px; color: var(--muted); }
.detail-body p { margin: 0 0 14px; }

.hamburger-menu {
  border: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.hamburger-menu summary {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.contact-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue-dark); color: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-copy { padding: 38px; }
.contact-copy p { color: rgba(255,255,255,.78); }
.form { display: grid; gap: 12px; background: white; color: var(--ink); padding: 30px; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; font: inherit; color: var(--ink); background: #fbfefd; }
textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
.form .btn,
.appointment-form .btn {
  width: 100%;
}

.appointment-toggle { position: fixed; opacity: 0; pointer-events: none; }

.floating-appointment {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(13,47,61,.28);
  cursor: pointer;
}

.floating-appointment::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: #cdecef;
  box-shadow: 0 0 0 6px rgba(205,236,239,.18);
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.appointment-toggle:checked ~ .appointment-modal { display: grid; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 38, .54);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.appointment-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: white;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(7, 29, 38, .32);
}

.appointment-intro {
  padding: 34px;
  background: linear-gradient(160deg, var(--blue-dark), var(--blue));
  color: white;
}

.appointment-intro img {
  width: 130px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.appointment-intro h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.05; }
.appointment-intro p { color: rgba(255,255,255,.78); margin: 0 0 20px; }
.appointment-intro a { font-weight: 850; }

.appointment-form {
  display: grid;
  gap: 12px;
  padding: 34px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(13,47,61,.14);
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cv-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 38, .58);
  backdrop-filter: blur(8px);
}

.cv-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(800px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: white;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(7, 29, 38, .32);
}

.cv-profile {
  padding: 34px;
  background: linear-gradient(160deg, var(--blue-dark), var(--blue));
  color: white;
}

.cv-profile img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.cv-profile small {
  display: block;
  margin-bottom: 10px;
  color: #bfe2e6;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cv-profile h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

.cv-profile p { margin: 0; color: rgba(255,255,255,.8); }

.cv-content {
  display: grid;
  gap: 24px;
  padding: 34px;
}

.cv-content section { padding: 0; }
.cv-content h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 18px; }
.cv-content p, .cv-content li { color: var(--muted); font-size: 15px; }
.cv-content ul { margin: 0; padding-left: 18px; }
.cv-content li + li { margin-top: 8px; }

footer { padding: 44px 0; background: #0d2f3d; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 30px; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-grid strong { color: white; display: block; margin-bottom: 10px; font-weight: 680; }
.footer-grid a { display: block; margin: 7px 0; }
.copyright {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .menu { display: none; }
  .hamburger-menu { display: block; }
  .hamburger-menu summary { display: flex; }

  .section-head, .split, .contact-panel { grid-template-columns: 1fr; }
  .card-grid, .team-grid, .logo-grid, .facility-grid, .footer-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { height: 260px; min-height: 260px; order: -1; }
  .media img { height: 380px; }
}

@media (max-width: 640px) {
  .topbar-inner, .nav-inner, .container { width: min(100% - 24px, 1180px); }
  .topbar { display: none; }
  .nav-inner { min-height: 72px; }
  .brand img { width: 132px; height: 62px; }
  .nav .btn { display: none; }
  .hamburger-panel { top: 78px; }
  .hamburger-panel {
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
  .page-hero .container { padding: 48px 0 58px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.05; }
  .page-hero p { font-size: 17px; line-height: 1.45; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  section { padding: 50px 0; }
  .card-grid, .team-grid, .logo-grid, .facility-grid, .footer-grid, .feature-grid { grid-template-columns: 1fr; }
  .card, .person, .logo-card, .facility-card {
    border-radius: 10px;
  }
  .feature-card div { padding: 24px; }
  .feature-card h3 { font-size: 22px; }
  .person img {
    height: min(440px, 96vw);
    padding: 0;
    object-fit: cover;
    object-position: center top;
  }
  .facility-card img, .media img { height: 300px; }
  .contact-copy, .form { padding: 24px; }
  input, select, textarea {
    min-height: 52px;
    font-size: 16px;
  }
  textarea { min-height: 132px; }
  .person-cv {
    min-height: 46px;
    font-size: 14px;
  }
  .floating-appointment {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 52px;
  }
  .appointment-modal { padding: 12px; align-items: end; }
  .appointment-card {
    max-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    border-radius: 14px 14px 0 0;
  }
  .cv-modal { padding: 12px; align-items: end; }
  .cv-card {
    max-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    border-radius: 14px 14px 0 0;
  }
  .cv-profile, .cv-content { padding: 24px; }
  .cv-profile img {
    width: 116px;
    height: 116px;
    margin-bottom: 18px;
  }
  .cv-profile h2 { font-size: 28px; }
  .appointment-intro {
    padding: 24px;
  }
  .appointment-intro img { display: none; }
  .appointment-intro h2 { font-size: 28px; }
  .appointment-form { padding: 20px; }
  footer {
    padding-bottom: 104px;
  }
}

@media (max-width: 420px) {
  .nav-inner { min-height: 68px; }
  .brand img { width: 122px; height: 58px; }
  .page-hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 29px; }
  .floating-appointment {
    font-size: 14px;
  }
}
