:root {
  --brand-primary: #0d7377;
  --brand-primary-light: #14a1a6;
  --brand-secondary: #2ec4b6;
  --brand-accent: #0a5f62;
  --brand-neutral: #f0f9f9;
  --text-dark: #0f1419;
  --text-muted: #4f5964;
  --border-color: #d1eeee;
  --max-width: 1180px;
  --shadow-sm: 0 2px 8px rgba(13, 115, 119, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 115, 119, 0.12);
  --shadow-lg: 0 16px 48px rgba(13, 115, 119, 0.18);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main h1,
main h2 {
  color: var(--text-dark);
}

main h3 {
  color: var(--brand-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
a:focus {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 4vw;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.08);
  transition: all 0.3s ease;
}

.top-bar:hover {
  box-shadow: 0 8px 32px rgba(13, 115, 119, 0.12);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(13, 115, 119, 0.08);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-bar__toggle svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.top-bar__toggle:hover,
.top-bar__toggle:focus {
  background: rgba(13, 115, 119, 0.15);
  border-color: rgba(13, 115, 119, 0.2);
  color: var(--brand-primary);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--brand-primary);
}

.brand-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.4);
}

.brand-name {
  font-weight: 700;
  margin: 0;
}

.brand-tagline {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.top-bar__nav {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

.top-bar__nav a {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.top-bar__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.top-bar__nav a.is-active {
  color: var(--brand-primary);
  font-weight: 600;
}

.top-bar__nav a.is-active::after {
  width: 80%;
}

.top-bar__nav a:hover::after,
.top-bar__nav a:focus::after {
  width: 80%;
}

.top-bar__nav a:hover,
.top-bar__nav a:focus {
  background: var(--brand-neutral);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.panel-trigger {
  padding: 0.65rem 1.5rem;
  border: 2px solid transparent;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.panel-trigger::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.panel-trigger:hover::before {
  width: 300px;
  height: 300px;
}

.panel-trigger:hover,
.panel-trigger:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.35);
}

main {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  flex: 1 0 auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-light) 100%
  );
  color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.hero__subtitle:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}

.section--intro {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(135deg, #ffffff 0%, rgba(13, 115, 119, 0.1) 100%);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.section--intro::before,
.section--intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
  z-index: 0;
}

.section--intro::before {
  width: 420px;
  height: 420px;
  top: -240px;
  right: -140px;
  background: radial-gradient(
    circle,
    rgba(20, 161, 166, 0.22) 0%,
    transparent 70%
  );
}

.section--intro::after {
  width: 320px;
  height: 320px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(13, 115, 119, 0.16) 0%,
    transparent 70%
  );
}

.section--intro > * {
  position: relative;
  z-index: 1;
}

.section--mission,
.section--core,
.section--contact,
.section--connect {
  justify-items: center;
}

.section--mission {
  justify-items: start;
}

.section--mission .home__mission,
.section--core .home__core,
.section--contact .contact__form,
.section--connect .connect__card {
  width: min(760px, 100%);
}

.section--mission .home__mission {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  padding-left: 0;
}

.section--intro .section__header {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.section--intro h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0;
  color: var(--text-dark);
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home__layout {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home__mission,
.home__core {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.06);
}

.home__core h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--brand-primary);
}

.home__mission p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 0;
}

.section--mission h2 {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--text-dark);
  padding-left: 0;
}

.section--mission p {
  color: var(--text-muted);
  line-height: 1.7;
}

.home__core-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.home__core-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.home__core-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-primary);
}

.home__core-description {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .home__core-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-light) 100%
  );
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.values,
.section,
.contact {
  margin: 0 auto;
  width: min(var(--max-width), 92vw);
}

.values {
  display: grid;
  gap: 2.5rem;
}

.values__intro h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
  padding-left: 0;
}

.values__intro p {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 0;
}

.values__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.values__grid article {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 249, 249, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 115, 119, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.values__grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 115, 119, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.values__grid article:hover::before {
  opacity: 1;
}

.values__grid article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 115, 119, 0.15);
}

.values__grid h3 {
  margin-top: 0;
  color: var(--brand-primary);
  position: relative;
}

.section {
  display: grid;
  gap: 2.5rem;
}

.section--alt {
  background: linear-gradient(135deg, #e6f7f7 0%, #d1f0f0 100%);
  padding: 4rem 4vw;
  border-radius: 32px;
  box-shadow: inset 0 2px 8px rgba(13, 115, 119, 0.06);
  position: relative;
  overflow: hidden;
}

.section--alt::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(46, 196, 182, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section__header h2 {
  margin: 0 0 0.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  position: relative;
  display: inline-block;
  font-weight: 600;
}

/* News and Publications subheadings get a slightly smaller size in brand green */
#newsTitle,
#publicationsTitle {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--brand-primary);
}

.services-section .section__header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-radius: 2px;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid--services {
  align-items: stretch;
}

.card-grid article {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 115, 119, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-grid--navigation article {
  display: grid;
  gap: 1rem;
}

.card-grid--navigation .btn {
  justify-self: start;
}

.card-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(13, 115, 119, 0.15);
  border-color: var(--brand-secondary);
}

.card-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card-grid p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.card-grid .meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--brand-secondary);
}

/* Enhanced Services Page Styles */
.hero--services {
  background: linear-gradient(
      135deg,
      rgba(13, 115, 119, 0.95) 0%,
      rgba(46, 196, 182, 0.85) 50%,
      rgba(13, 115, 119, 0.95) 100%
    ),
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(46, 196, 182, 0.2) 0%,
      transparent 50%
    );
  color: #ffffff;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero--services::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.03) 60px,
    rgba(255, 255, 255, 0.03) 120px
  );
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) translateY(-50%) rotate(360deg);
  }
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.services-section {
  padding: 4rem 0;
}

.service-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0a8a8e 100%);
  border: 1px solid rgba(46, 196, 182, 0.3);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.services-empty {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: 0 16px 48px rgba(13, 115, 119, 0.15);
  border-color: var(--brand-secondary);
}

.service-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.service-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.2);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

.service-card__badge {
  background: rgba(46, 196, 182, 0.1);
  color: var(--brand-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  border: 1px solid rgba(46, 196, 182, 0.2);
  white-space: nowrap;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0 2rem;
  text-align: left;
}

.service-card > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  padding: 0 2rem;
  text-align: left;
}

.service-features {
  padding: 0 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-category h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-category h4::before {
  content: "";
  width: 3px;
  height: 16px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-radius: 2px;
}

.service-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.service-features li svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.services-cta {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  border-radius: 24px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.services-cta__content {
  position: relative;
  z-index: 1;
}

.services-cta h3 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
}

.services-cta p {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.services-cta .btn {
  background: #ffffff;
  color: var(--brand-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.services-cta .btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.services-cta .btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.services-cta .btn:hover svg {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .hero--services {
    padding: 3rem 1rem 2rem;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .service-card__header {
    padding: 1.5rem 1.5rem 1rem;
    gap: 0.75rem;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
  }

  .service-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .service-card h3 {
    padding: 0 1.5rem;
    font-size: 1.25rem;
  }

  .service-card > p {
    padding: 0 1.5rem;
  }

  .service-features {
    padding: 0 1.5rem 1.5rem;
  }

  .services-cta {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }

  .services-cta h3 {
    font-size: 1.5rem;
  }
}

/* Animation classes for service cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus states for accessibility */
.service-card:focus-within {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

.services-cta .btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Additional visual enhancements */
.service-card__icon {
  position: relative;
  overflow: hidden;
}

.service-card__icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover .service-card__icon::before {
  left: 100%;
}

/* Legacy styles maintained for compatibility */
.card-grid--services article {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0a8a8e 100%);
}

.card-grid--services article ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.card-grid--services article li {
  margin-bottom: 0.4rem;
  font-family: "Montserrat", sans-serif;
  color: rgba(255, 255, 255, 0.85);
}

.service__focus {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
}

.service__focus strong {
  color: var(--text-dark);
}

.service__focus-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service__focus-list li {
  margin-bottom: 0.4rem;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  border-radius: 999px;
}

.timeline__item {
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.3s ease;
}

.timeline__item:hover {
  transform: translateX(8px);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.1);
  transition: all 0.3s ease;
}

.timeline__item:hover::before {
  background: var(--brand-secondary);
  box-shadow: 0 0 0 6px rgba(46, 196, 182, 0.2);
  transform: scale(1.2);
}

.timeline__year {
  font-weight: 700;
  color: var(--brand-secondary);
}

.timeline__client {
  font-weight: 600;
  margin: 0.25rem 0;
}

.timeline__summary {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* News Grid Styles */
.news-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.news-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.06);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.12);
  border-color: var(--brand-secondary);
}

.news-item__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
}

.news-item__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-item__source {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.75rem;
}

.news-item__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item__title a:hover {
  color: var(--brand-primary);
}

.news-item__excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.news-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.news-item__date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-item__link:hover {
  color: var(--brand-secondary);
  gap: 0.75rem;
}

.news-item__link svg {
  width: 16px;
  height: 16px;
}

.news-item--no-image .news-item__content {
  padding: 2rem;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-item__image {
    height: 180px;
  }
}

/* Partner Profiles Styles */
.partners-grid {
  display: grid;
  gap: 3rem;
}

.partner-profile {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0a8a8e 100%);
  border: 1px solid rgba(46, 196, 182, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.15);
  transition: all 0.3s ease;
  text-align: left;
}

.partner-profile:hover {
  box-shadow: 0 8px 32px rgba(13, 115, 119, 0.25);
  transform: translateY(-4px);
}

.partner-profile__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.partner-profile__avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.partner-profile__avatar span {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.partner-profile__info {
  flex: 1;
}

.partner-profile__name {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02rem;
}

.partner-profile__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
}

.partner-profile__content {
  display: grid;
  gap: 1.5rem;
  text-align: left;
  justify-items: start;
}

.partner-profile__content > p {
  margin: 0;
  color: #ffffff;
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: left;
}

.partner-profile__credentials {
  background: var(--brand-neutral);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--brand-primary);
}

.partner-profile__credentials h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.partner-profile__credentials ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}

.partner-profile__credentials li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.9rem;
}

.partner-profile__credentials li:last-child {
  margin-bottom: 0;
}

.partner-profile__credentials li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .partner-profile {
    padding: 1.5rem;
  }

  .partner-profile__header {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .partner-profile__avatar {
    width: 60px;
    height: 60px;
    align-self: center;
  }

  .partner-profile__avatar span {
    font-size: 1.2rem;
  }

  .partner-profile__name {
    font-size: 1.5rem;
  }

  .partner-profile__content > p {
    text-align: left;
  }
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.contact__info h2 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.contact__info p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact__info ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.contact__info li span {
  display: block;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
}

.contact__form {
  display: grid;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #888888;
  background: #999999;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.contact__form h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
  color: #ffffff;
  font-weight: 600;
}

.contact__form .section__lead {
  color: #f0f0f0;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.section--contact .contact__channels {
  width: min(760px, 100%);
  justify-content: center;
  justify-self: center;
}

.section--contact .contact__socials {
  width: min(760px, 100%);
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-self: center;
}

.section--contact .contact__socials h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01rem;
  color: var(--brand-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact__direct {
  justify-content: center;
  gap: 0.75rem;
}

.contact__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--brand-neutral);
  color: var(--brand-primary);
  font-weight: 600;
}

.contact__channel:hover,
.contact__channel:focus {
  border-color: var(--brand-primary);
  color: var(--brand-accent);
}

.contact__form:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-color: #777777;
}

.contact__form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.contact__form input,
.contact__form textarea {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 2px solid #9f9e9e;
  background: #b8b7b7;
  color: #1a1a1a;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: #6a6a6a;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #d0d0d0;
  box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.3);
}

.form-note {
  margin: 0;
  color: #f5f5f5;
  font-size: 0.85rem;
}

.footer {
  margin-top: 2rem;
  padding: 2rem 4vw;
  background: linear-gradient(
    135deg,
    var(--brand-accent) 0%,
    var(--brand-primary) 100%
  );
  color: #ffffff;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
}

.footer .brand-name {
  font-size: 1rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__links a.is-active {
  color: #ffffff;
  font-weight: 600;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__legal {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.connect__card {
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240, 249, 249, 0.9), #ffffff);
  border: 1px solid rgba(13, 115, 119, 0.1);
  text-align: center;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.5rem;
}

.connect__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.connect__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(13, 115, 119, 0.08),
    rgba(46, 196, 182, 0.1)
  );
  color: var(--brand-primary);
  border: 1px solid rgba(13, 115, 119, 0.2);
  box-shadow: 0 6px 16px rgba(13, 115, 119, 0.12);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.connect__link:hover,
.connect__link:focus {
  opacity: 1;
  transform: translateY(-3px);
  background: linear-gradient(
    135deg,
    rgba(13, 115, 119, 0.12),
    rgba(46, 196, 182, 0.16)
  );
  box-shadow: 0 10px 24px rgba(13, 115, 119, 0.18);
}

.connect__link svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.connect__link:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

/* Content management panel */

dialog#managementPanel {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: min(920px, 92vw);
  width: 100%;
  box-shadow: 0 40px 80px rgba(13, 115, 119, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9f9 100%);
}

.panel__close {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem 0 0;
}

.panel__close button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: var(--brand-neutral);
}

.panel__header {
  padding: 0 2rem 1.5rem;
}

.panel__header h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
}

.panel__tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem 1.25rem;
}

.panel__tab {
  flex: 1 1 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.panel__tab:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.panel__tab[aria-selected="true"] {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
}

.panel__content {
  padding: 0 2rem 2rem;
}

.panel__section {
  display: grid;
  gap: 1.5rem;
}

.panel-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--brand-neutral);
}

.panel-item__body h4 {
  margin: 0 0 0.5rem;
}

.panel-item__body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.panel-item__actions {
  display: flex;
  gap: 0.75rem;
}

.panel-item__actions button {
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.panel-item__edit {
  background: #ffffff;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}

.panel-item__edit:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
}

.panel-item__delete {
  background: #ffe8e8;
  color: #c0392b;
}

.panel-item__delete:hover {
  background: #c0392b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.panel__form {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  background: #ffffff;
}

.panel__form label {
  font-weight: 600;
}

.panel__form input,
.panel__form textarea {
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.panel__form input:focus,
.panel__form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.1);
}

.panel__form textarea {
  resize: vertical;
  min-height: 80px;
}

.panel__form button[type="submit"] {
  justify-self: flex-start;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
  transition: all 0.3s ease;
}

.panel__form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.35);
}

.panel__form .panel__form-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Modern scroll reveal animations */
@keyframes fadeInUpScroll {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.values,
.contact {
  animation: fadeInUpScroll 0.8s ease-out both;
}

/* Element-level reveal on scroll (for headings, icons, etc.) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Gradient text effects */
.section__header h2 {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-light) 70%,
    var(--brand-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover glow effect */
.card-grid article {
  position: relative;
}

.card-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(20px);
}

.card-grid article:hover::after {
  opacity: 0.15;
}

/* Smooth link transitions */
.footer__links a,
.contact__info a {
  position: relative;
  transition: all 0.3s ease;
}

.footer__links a::after,
.contact__info a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer__links a.is-active::after {
  width: 100%;
}

.footer__links a:hover::after,
.contact__info a:hover::after {
  width: 100%;
}

/* Enhanced button interactions */
.btn,
.panel-trigger,
.panel__tab,
.panel__form button[type="submit"] {
  user-select: none;
}

/* Loading animation for stats */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulsing accent for important elements */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(13, 115, 119, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(13, 115, 119, 0);
  }
}

.panel-trigger:focus {
  animation: pulse 1.5s infinite;
}

/* ============================================
   LOGIN MODAL & AUTHENTICATION STYLES
   ============================================ */

.modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  background: white;
}

.modal::backdrop {
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(4px);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0;
}

.modal__close button {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s;
}

.modal__close button:hover {
  color: var(--brand-primary);
  transform: rotate(90deg);
}

.modal__content {
  padding: 2.5rem;
}

.modal__content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: var(--brand-primary);
  margin: 0 0 0.5rem 0;
}

.modal__subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.error-message {
  padding: 0.75rem 1rem;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
  font-size: 0.9rem;
}

.modal__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.modal__footer .text-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.modal__footer code {
  background: var(--brand-neutral);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--brand-accent);
}

.btn-login {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.btn-login:hover {
  background: var(--brand-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  width: 100%;
  background: var(--brand-primary);
  color: white;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--primary:hover {
  background: var(--brand-primary-light);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu__name {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.btn-logout {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-logout:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-neutral);
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 840px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 4vw;
  }

  .top-bar__brand {
    flex: 1 1 auto;
  }

  .top-bar__actions {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  .top-bar__toggle {
    display: inline-flex;
    order: 3;
  }

  .top-bar__nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(13, 115, 119, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .top-bar__nav.is-open {
    display: flex;
  }

  .top-bar__nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
  }

  .top-bar__nav a::after {
    display: none;
  }

  .top-bar__nav a:hover,
  .top-bar__nav a:focus {
    transform: none;
    background: var(--brand-neutral);
  }

  .panel-trigger {
    width: auto;
  }

  .user-menu {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }

  .modal__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .panel-item {
    flex-direction: column;
  }

  .panel-item__actions {
    justify-content: flex-end;
  }

  html {
    font-size: 15px;
  }

  main {
    gap: 3.25rem;
  }

  .top-bar {
    padding: 0.9rem 5vw;
  }

  .top-bar__actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .user-menu {
    justify-content: flex-end;
  }

  .section--intro {
    padding: 1.75rem;
    border-radius: 24px;
  }

  .section__header h2 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }

  .section__lead {
    font-size: 0.98rem;
  }

  .home__core,
  .values__grid article,
  .contact__form {
    padding: 1.5rem;
  }

  .contact__channels {
    justify-content: center;
    gap: 0.5rem;
  }

  .connect__links {
    justify-content: center;
    gap: 0.75rem;
  }

  .connect__link {
    width: 3.1rem;
    height: 3.1rem;
  }

  .connect__link svg,
  .social-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .section--contact .contact__socials h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .connect__card {
    padding: 2rem 1.5rem;
  }

  .connect__link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .footer {
    padding: 2rem 6vw;
  }

  /* Slightly tighter send button styling on phones */
  #homeContactForm .btn,
  .contact__form .btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.35rem;
    min-height: 44px; /* still meets touch target guidance */
  }
}

@media (max-width: 480px) {
  .top-bar__brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .top-bar__nav {
    padding: 0.75rem 0.5rem;
  }

  .top-bar__nav a {
    padding: 0.65rem 0.9rem;
  }

  .contact__channels {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__channel {
    justify-content: center;
  }

  .section--intro::before,
  .section--intro::after {
    opacity: 0.6;
  }
}
